Skip to content

Commit

Permalink
[data] get_mnist.sh rewrite; prevents prompt in tutorial notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
longjon authored and shelhamer committed Feb 24, 2016
1 parent bd6b03f commit f1d245c
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions data/mnist/get_mnist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ cd $DIR

echo "Downloading..."

wget --no-check-certificate http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz

echo "Unzipping..."

gunzip train-images-idx3-ubyte.gz
gunzip train-labels-idx1-ubyte.gz
gunzip t10k-images-idx3-ubyte.gz
gunzip t10k-labels-idx1-ubyte.gz

# Creation is split out because leveldb sometimes causes segfault
# and needs to be re-created.

echo "Done."
for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
do
if [ ! -e $fname ]; then
wget --no-check-certificate http://yann.lecun.com/exdb/mnist/${fname}.gz
gunzip ${fname}.gz
fi
done

0 comments on commit f1d245c

Please sign in to comment.