This github has the index list used by pretrained models of torchvision for the ILSVRC 2012 validation set.
Save your time!
ILSVRC2012_torchindex.csv
python torchpretrain_evaluator.py --pretrained_model vgg16
You can use other options (VGG16: vgg16, ResNet18: resnet18)
torch 1.11.0 torchvision 0.12.0