其他分享
首页 > 其他分享> > 5-使用lenet5 进行mnist手写字体训练以及预测

5-使用lenet5 进行mnist手写字体训练以及预测

作者:互联网

1.下载mnist

在caffe根目录下,执行以下脚本

./data/mnist/get_mnist.sh

 脚本内容如下

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

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

echo "Downloading..."

for fname in train-images-idx3-ubyte train-labels-idx1-ubyte t10k-images-idx3-ubyte t10k-labels-idx1-ubyte
do
    if [ ! -e $fname ]; then
        wget --no-check-certificate http://yann.lecun.com/exdb/mnist/${fname}.gz
        gunzip ${fname}.gz
    fi
done

 

 

标签:lenet5,t10k,labels,gz,fname,手写,ubyte,mnist
来源: https://www.cnblogs.com/codeAndlearn/p/15914109.html