1 Star 2 Fork 2

aczz / mnist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 736 Bytes
一键复制 编辑 原始数据 按行查看 历史
aczz 提交于 2021-03-07 21:24 . feature: add helper scripts

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 -c mnist/${fname}.gz > ${fname} # will keep original files
done

For general usage

git clone https://gitee.com/aczz/mnist

bash ./extract.sh

make && ./a.out
# or use cmake:
#mkdir build && cd build && cmake .. && make

python gen_path.py
1
https://gitee.com/aczz/mnist.git
git@gitee.com:aczz/mnist.git
aczz
mnist
mnist
master

搜索帮助