caffe好用的命令

博客[1]中指出了运用命令计算运行时间的指令

示例如下

./build/tools/caffe time --model=examples/mnist/mytest/execise1_train_test.prototxt -iterations 100 -gpu 0

train_test.prototxt是训练时的文件即可

caffe提供了可视化的python代码

其实在网址[2]中可以直接复制部署文件查看

cd python

python draw_net.py   a.prototxt   a.png 


测试模型准确率的命令

build/tools/caffe test -model ./examples/mnist/lenet_train_test.prototxt -weights=./examples/mnist/lenet_iter_10000.caffemodel

训练

sh examples/cifar10/train_full.sh



[1] http://blog.csdn.net/qyxqyx123/article/details/53431724

[2] 模型可视化小工具

posted @ 2017-04-04 14:38  开往春天的拖拉机  阅读(92)  评论(0编辑  收藏  举报