超快速度下載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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM