超快速度下载MNIST数据集

Download mnist dataset and extract in 1 second!

For Caffe users: create $CAFFE/data/mnist/get_mnist_fast.sh:

#!/usr/bin/env sh
# This scripts downloads the mnist data and unzips it.

DIR="$( cd "$(dirname "$0")" ; pwd -P )"
cd "$DIR"

echo "Downloading..."

wget https://gitee.com/aczz/mnist/repository/archive/master.zip
unzip master.zip

for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
do
    gunzip mnist/${fname}.gz
    mv mnist/${fname} ./
done
posted @ 2019-11-19 23:54  ChrisZZ  阅读(...)  评论(... 编辑 收藏