The imagenet dataset that I downloaded from ILSVRC has two sub-folders
Annotations
Data
ImageSets
Out of the above 3, the second folder, i.e. “Data” folder seems to have the .jpeg files.
This folder has a single subfolder called CLS-LOC, which further has 3 subfolders
2 a) test
2 b) train
2 c)val
While training and testing, I use the following for loading datasets
Hi, I am using the 2012 dataset now…there doesnt seem to be the same issue…i did an ls, and am attaching screenshot of results…however, the accuracy on train and val tests are differing a lot (50% versus 1%).
I typed the above command in the val folder, and hit enter…it printed nothing (I am assuming it means all folders are non empty)…also, a print out of the total count of the validation set images while validating, is around 50k…
Hi
I have faced same problem when I’m trying to load data which is present in a folder. The thing is create a folder again in the target folder with that data… Now in your case /test/test_dummy…
Test_dummy contains same as your test data. So that torch ImageFolder can find test_dummy as a subfolder inside the test folder. Now it doesn’t give any error. Even though larger datasets require more time to copy there is no other option I have found. I hope you find it useful.
Thank you. Have a try and let me know.