Skip to content

Commit 5648e48

Browse files
committed
Check for getting ILSVRC2012 datasets from image-net.org
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]>
1 parent cdef4d4 commit 5648e48

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

imagenet/extract_ILSVRC.sh

+23-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,29 @@
2222
# │ ├── ......
2323
# ├── ......
2424
#
25-
#
25+
26+
if [ ! -f ILSVRC2012_img_train.tar ]; then
27+
read -p "There is no train data. Do you want to download ILSVRC2012_img_train.tar (about 138 GB)? (y/n): " answer
28+
if [ "$answer" = "y" ]; then
29+
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar --no-check-certificate
30+
else
31+
exit
32+
fi
33+
else
34+
echo "The train data 'ILSVRC2012_img_train.tar' is in the current directory."
35+
fi
36+
37+
if [ ! -f ILSVRC2012_img_val.tar ]; then
38+
read -p "There is no train data. Do you want to download ILSVRC2012_img_val.tar (about 6.3 GB)? (y/n): " answer
39+
if [ "$answer" = "y" ]; then
40+
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar --no-check-certificate
41+
else
42+
exit
43+
fi
44+
else
45+
echo "The val data 'ILSVRC2012_img_val.tar' is in the current directory."
46+
fi
47+
2648
# Make imagnet directory
2749
#
2850
mkdir imagenet

0 commit comments

Comments
 (0)