script to get cifar
[jacinto-ai/caffe-jacinto.git] / data / get_mnist.sh
1 #!/usr/bin/env sh
2 # This scripts downloads the mnist data and unzips it.
4 echo "Downloading..."
6 wget -q http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
7 wget -q http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
8 wget -q http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
9 wget -q http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
11 echo "Unzipping..."
13 gunzip train-images-idx3-ubyte.gz
14 gunzip train-labels-idx1-ubyte.gz
15 gunzip t10k-images-idx3-ubyte.gz
16 gunzip t10k-labels-idx1-ubyte.gz
18 echo "Done."