First, go to the ImageNet download page (you may need to register an account), and find the page for ILSVRC2012. Next, find and download the following two files:
Filename | Size |
---|---|
ILSVRC2012_img_train.tar | 138 GB |
ILSVRC2012_img_val.tar | 6.3 GB |
- Download the helper script extract_imagenet.py, and the validation labels imagenet_val_maps.pklz.
- Place both files in the same folder.
- Run the following command:
python extract_imagenet.py --download-dir *path to download folder* --target-dir *path to extract folder*
Please note that the usage of the dataset must be non-commercial as per the ImageNet license