Ubuntu 14.04 64位机上用Caffe+MNIST训练Lenet网络操作步骤
来源:互联网 发布:java获取本地端口号 编辑:程序博客网 时间:2024/06/05 16:41
1. 将终端定位到Caffe根目录;
2. 下载MNIST数据库并解压缩:$ ./data/mnist/get_mnist.sh
3. 将其转换成Lmdb数据库格式:$ ./examples/mnist/create_mnist.sh
执行完此shell脚本后,会在./examples/mnist下增加两个新目录,mnist_test_lmdb和mnist_train_lmdb
4. train model:$ ./examples/mnist/train_lenet.sh
(1)、使用LeNet网络(《Gradient-BasedLearning Applied to Document Recognition》);
(2)、使用./examples/mnist/lenet_train_test.prototxtmodel;
(3)、使用./examples/mnist/lenet_solver.prototxtmodel;
(4)、执行train_lenet.sh脚本,会调用./build/tools目录下的caffe执行文件,此执行文件的实现是./tools目录下的caffe.cpp文件;
(5)、执行此脚本后,会生成几个文件,其中./examples/mnist/lenet_iter_10000.caffemodel则是最终训练生成的model文件;
(6)、以上默认的是在GPU模式下运行,如果想让其在CPU模式下运行,只需将lenet_solver.prototxt文件中的solver_mode字段值由原来的GPU改为CPU即可;
运行结果如下图:
参考文献:http://caffe.berkeleyvision.org/gathered/examples/mnist.html
- Ubuntu 14.04 64位机上用Caffe+MNIST训练Lenet网络操作步骤
- caffe 安装与配置 (仅CPU版)以及Ubuntu 14.04 64位机上用Caffe+MNIST训练Lenet网络
- Caffe MNIST训练lenet网络
- caffe训练mnist数据集使用lenet网络
- 用caffe用LeNet来训练MNIST
- 用Caffe在MNIST上训练LeNet
- Caffe实战:LeNet模型训练测试MNIST数据集
- ubuntu16.04 caffe 数据集MNIST 训练LeNet
- 【caffe】mnist数据集lenet训练与测试
- 深入理解Caffe MNIST DEMO中的LeNet网络模型
- Ubuntu安装Caffe并训练MNIST
- Ubuntu安装Caffe并训练MNIST
- Windows7 64bit VS2013 Caffe train MNIST操作步骤
- Windows7 64bit VS2013 Caffe test MNIST操作步骤
- 奔跑吧Caffe(在MNIST手写体数字集上用Caffe框架训练LeNet模型)
- Training MNIST LeNet on MNIST with Caffe
- (Caffe,LeNet)网络训练流程(二)
- (Caffe,LeNet)初始化训练网络(三)
- 构建平台
- 安装配置Linux ftp服务及用IE访问Linux ftp
- backpack
- 机器学习中的相似性度量
- 4.1
- Ubuntu 14.04 64位机上用Caffe+MNIST训练Lenet网络操作步骤
- C++中的static关键字
- Android中监听ListView滑动到底部
- Java 设计模式 之单例模式
- hdu 1874 畅通工程续(最短路Dij邻接表)
- 【PAT】1091. Acute Stroke (30)
- Activity.this 和getApplicationContext()的区别
- App遮罩层引导操作
- jvm方法区