summaryrefslogtreecommitdiff
path: root/data/get_mnist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/get_mnist.sh')
-rwxr-xr-xdata/get_mnist.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/data/get_mnist.sh b/data/get_mnist.sh
new file mode 100755
index 0000000..ec979bd
--- /dev/null
+++ b/data/get_mnist.sh
@@ -0,0 +1,18 @@
+#!/usr/bin/env sh
+# This scripts downloads the mnist data and unzips it.
+
+echo "Downloading..."
+
+wget -q http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
+wget -q http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
+wget -q http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
+wget -q 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
+
+echo "Done."