Skip to content

Commit

Permalink
Check for getting ILSVRC2012 datasets from image-net.org
Browse files Browse the repository at this point in the history
Checking the data is exists for imagenet and download the ILSVRC2012
training and validation datasets from image-net.org.

Signed-off-by: Yunseong Kim <[email protected]>
  • Loading branch information
yskelg committed Oct 3, 2024
1 parent cdef4d4 commit 5648e48
Showing 1 changed file with 23 additions and 1 deletion.
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

0 comments on commit 5648e48

Please sign in to comment.