debug caffe

来源:互联网 发布:珠海联邦制药知乎 编辑:程序博客网 时间:2024/06/05 13:32

1、有几种思路:用gdb 用anjuta 用qt 用eclipse

(1)gdb赵凯大神的博客介绍的很好

http://zhaok.xyz/post/debug_caffe_ubuntu/

(2)anjuta

http://blog.csdn.net/xiaoyezi_1834/article/details/50724875

caffe编译-》导入已有工程-》设置断点-》配置“运行 -> 程序参数”-》“运行 -> 调试程序”

注意

(1)参数:

在Program一栏中,选择右边的打开按钮,然后选择文件夹caffe/build/tools/下的caffe.bin可执行文件。

对于Arguments一栏,填入参数:train --solver=examples/mnist/lenet_solver.prototxt,然后点击“应用”

(2)mnist例子中需要

./data/mnist/get_mnist.sh

example/mnist/create_mnist.sh

(3)mnist例子中prototxt中的GPU改为CPU



0 0