Browse Source

Create a script to retrieve digit database

DricomDragon 5 years ago
parent
commit
58168e6b0d
2 changed files with 13 additions and 0 deletions
  1. 1 0
      resources/.gitignore
  2. 12 0
      resources/retrieve_digit_database.bash

+ 1 - 0
resources/.gitignore

@@ -0,0 +1 @@
+download/

+ 12 - 0
resources/retrieve_digit_database.bash

@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Retrieve training and test image sets from the web http://yann.lecun.com/exdb/mnist/
+
+#wget --no-host-directories --cut-dirs=1 
+wget --directory-prefix=download --no-clobber \
+	http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz \
+	http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz \
+	http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz \
+	http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz
+
+gunzip --keep download/*