Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion imagenet/extract_ILSVRC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,29 @@
# │ ├── ......
# ├── ......
#
#

if [ ! -f ILSVRC2012_img_train.tar ]; then
read -p "There is no train data. Do you want to download ILSVRC2012_img_train.tar (about 138 GB)? (y/n): " answer
if [ "$answer" = "y" ]; then
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar --no-check-certificate
else
exit
fi
else
echo "The train data 'ILSVRC2012_img_train.tar' is in the current directory."
fi

if [ ! -f ILSVRC2012_img_val.tar ]; then
read -p "There is no train data. Do you want to download ILSVRC2012_img_val.tar (about 6.3 GB)? (y/n): " answer
if [ "$answer" = "y" ]; then
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar --no-check-certificate
else
exit
fi
else
echo "The val data 'ILSVRC2012_img_val.tar' is in the current directory."
fi

# Make imagnet directory
#
mkdir imagenet
Expand Down