]> piware.de Git - handwriting-recognition.git/commitdiff
Add script to download MNIST digit database
authorMartin Pitt <martin@piware.de>
Fri, 28 Aug 2020 04:46:51 +0000 (06:46 +0200)
committerMartin Pitt <martin@piware.de>
Sun, 30 Aug 2020 09:20:52 +0000 (11:20 +0200)
.gitignore [new file with mode: 0644]
download-mnist.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..63847d8
--- /dev/null
@@ -0,0 +1 @@
+/*-ubyte
diff --git a/download-mnist.sh b/download-mnist.sh
new file mode 100755 (executable)
index 0000000..f68e1e2
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eux
+curl -O http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz
+curl -O http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz
+curl -O http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz
+curl -O http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
+gunzip *ubyte.gz