瀏覽代碼

Create a script to retrieve digit database

DricomDragon 5 年之前
父節點
當前提交
58168e6b0d
共有 2 個文件被更改,包括 13 次插入0 次删除
  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/*