I am getting a RuntimeError. Recently I downloaded the ImageNet dataset from Kaggle and it is a large zip file. I just want to evaluate a trained dataset, but I can’t read the eval file.
path = "/home/me/Desktop/IMGNetDataset/imagenet-object-localization-challenge/ILSVRC/Data/CLS-LOC/val"
batch_size = 128
workers = 0
transform = transforms.Compose([ transforms.Resize(256),
transforms.CenterCrop(224),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
])
preprocessing = dset.ImageNet(root=import_dataset,
transform = transform )
test_sampler = SequentialSampler(preprocessing)
dataloader = DataLoader(preprocessing, batch_size=batch_size, sampler= test_sampler,
shuffle=False, num_workers=workers)
There is not such file ILSVRC2012_devkit_t12.tar.gz in the downloaded dataset.
RuntimeError: The archive ILSVRC2012_devkit_t12.tar.gz is not present in the root directory or is corrupted. You need to download it externally and place it in /home/me/Desktop/IMGNetDataset/imagenet-object-localization-challenge/ILSVRC/Data/CLS-LOC/.