File tree 1 file changed +7
-16
lines changed
1 file changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -6,19 +6,10 @@ cd $DIR
6
6
7
7
echo " Downloading..."
8
8
9
- wget --no-check-certificate http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
10
- wget --no-check-certificate http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
11
- wget --no-check-certificate http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
12
- wget --no-check-certificate http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
13
-
14
- echo " Unzipping..."
15
-
16
- gunzip train-images-idx3-ubyte.gz
17
- gunzip train-labels-idx1-ubyte.gz
18
- gunzip t10k-images-idx3-ubyte.gz
19
- gunzip t10k-labels-idx1-ubyte.gz
20
-
21
- # Creation is split out because leveldb sometimes causes segfault
22
- # and needs to be re-created.
23
-
24
- echo " Done."
9
+ for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
10
+ do
11
+ if [ ! -e $fname ]; then
12
+ wget --no-check-certificate http://yann.lecun.com/exdb/mnist/${fname} .gz
13
+ gunzip ${fname} .gz
14
+ fi
15
+ done
You can’t perform that action at this time.
0 commit comments