The official kaggle website for ImageNet dataset is here.
-
run
pip3 install kaggle
. -
Register an account at kaggle.
-
Agree the terms and conditions on the dataset page.
-
Go to your account page (https://www.kaggle.com//account). Select 'Create API Token' and this will trigger the download of
kaggle.json
, a file containing your API credentials. -
Copy this file into your server at
~/.kaggle/kaggle.json
-
run command
chmod 600 ~/.kaggle/kaggle.json
and make it visible only to yourself. -
run command
kaggle competitions download -c imagenet-object-localization-challenge
. -
Unzip the file
unzip -q imagenet-object-localization-challenge.zip
andtar -xvf imagenet_object_localization_patched2019.tar.gz
-
Enter the validation set folder
cd ILSVRC/Data/CLS-LOC/val
-
run scrip
sh/prepare_imagenet.sh
provided by the PyTorch repository, to move the validation subset to the labeled subfolders. -
The
--datadir
you need to feed intotrain.py
is the path of the folder ILSVRC.