Created
August 22, 2018 22:17
-
-
Save iamaaditya/8b7b95c3aa7d40e0acf1b021dc0ef636 to your computer and use it in GitHub Desktop.
ImageNet Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Step1: | |
mkdir /hdd/ImageNet | |
cd /hdd/ImageNet | |
#Step2: Download ImageNet data | |
#Download training images (about 50GB) | |
wget -c http://www.image-net.org/challenges/LSVRC/2012/nonpub/ILSVRC2012_img_train.tar & | |
#Download validation images: | |
wget -c http://www.image-net.org/challenges/LSVRC/2012/nonpub/ILSVRC2012_img_val.tar & | |
#Step3: decompress ImageNet data | |
#To extract training data | |
mkdir train && mv ILSVRC2012_img_train.tar train/ && cd train | |
tar -xvf ILSVRC2012_img_train.tar && rm -f ILSVRC2012_img_train.tar | |
find . -name "*.tar" | while read NAME ; do mkdir -p "${NAME%.tar}"; tar -xvf "${NAME}" -C "${NAME%.tar}"; rm -f "${NAME}"; done | |
// Make sure to check the completeness of the decompression, you should have 1,281,167 images in train folder | |
#To extract validation data | |
cd ../ && mkdir val && mv ILSVRC2012_img_val.tar val/ && cd val && tar -xvf ILSVRC2012_img_val.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment