I have two questions about how to load Imagenet datas. I downloaded ILSVRC2012 validation sets(Cause training sets are too large) but I have two problems.
I can't understand how can I find out the labels.
There are only jpeg files with file names like "ILSVRC2012_val_00000001.JPEG
" but there's no labels. How can I find them?
As far as I know, Imagenet uses 224 * 224 pixel image and the problem is just "classification" not "detection", but ILSVRC2012 sets have much more and different pixel sizes. So, how can I get proper boxes for 224 * 224 pixels?
ImageNet Download: Go to https://www.kaggle.com/c/imagenet-object-localization-challenge and click on the data tab. You can use the Kaggle API to download on a remote computer, or that page to download all the files you want directly. There, they provide both the labels and the image data.
You can interactively explore available synsets (categories) at http://www.image-net.org/explore, each synset page has a "Downloads" tab where you can download category image URLs. Alternatively, you can use the ImageNet API. You can download image URLs for a particular synset using the synset id or wnid .
You will download three tar archives: one for training data, one for validation data, and one for test data.
Training data is contained in 1000 folders, one folder per class (each folder should contain 1,300 JPEG images). Validation data is a single folder with 50k JPEG
images, look for the corresponding ILSVRC2012_validation_ground_truth.txt
file in (as darren1231 mentioned, it needs to be downloaded separately as part of DevKit).
Test data is similar to validation data, but it does not have labels (labels are not provided to you because you need to submit your predicted labels to them, as part of the competition).
It's in the Development kit (Task 1 & 2) The filename called "ILSVRC2012_validation_ground_truth.txt"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With