- 在 CaffeRoot 下的/build/tools中运行caffe命令
- caffe train -solver examples/mnist/lenet_solver.prototxt -gpu 2中的-gpu 2 中的2应该是GPU的编号,笔者只有一个GPU,将2改成0后,正常训练
- caffe test -model examples/mnist/lenet_train_test.prototxt -weights examples/mnist/lenet_iter_10000.caffemodel -gpu 0 -iterations 100
首先,caffe是build/tools中的命令,test表明是要测试一个数据集。
-model 引出参数model的prototxt
-weight 引出训练得到的网络的参数输入
-GPU 引出使用的GPU编号
-iterations迭代次数
Note:迭代的次数是从开始的 - caffe device_query -gpu 0:查看编号为0的GPU的状态
10-10
5014
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-24
07-24
07-24
07-24