Closed talenz closed 5 years ago
Hey talenz,
Thanks for reaching out! It seems that your particular imagenet validation set is either empty or not organizer properly. Where did you get the dataset? What does ls /aiml/data/imagenet/va
display?
The dataset should be organized as described in the PyTorch documentation: https://pytorch.org/docs/stable/torchvision/datasets.html#datasetfolder
Hey talenz,
Thanks for reaching out! It seems that your particular imagenet validation set is either empty or not organizer properly. Where did you get the dataset? What does
ls /aiml/data/imagenet/va
display?The dataset should be organized as described in the PyTorch documentation: https://pytorch.org/docs/stable/torchvision/datasets.html#datasetfolder
Thanks for the help. All my validation images are put under directory val? (Because tensorflow asks for this) So the solution is to manually reorganize all images?
Maybe the most simple thing would be to download the val folder from: http://www.image-net.org/challenges/LSVRC/2012/nonpub-downloads, could you try this? Also, you confirm that you have no subfolders in val ?
Do not hesitate to reach out for further questions.
I found this script https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh to prepare the val data. I found the link from https://docs.nvidia.com/deeplearning/sdk/dali-archived/dali_08_beta/dali-developer-guide/docs/examples/pytorch/resnet50/pytorch-resnet50.html
RuntimeError: Found 0 files in subfolders of: /aiml/data/imagenet/val Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif,.tiff,.webp