caffe学习中遇到的问题及解决方法
2018-03-08 17:00
92 查看
1、mnist数据集训练中遇到的问题
convert_mnist_data.cpp:48] Check failed: image_file Unable to open file data/mnist/t10k-images-idx3-ubyte *** Check failure stack trace: ***
Aborted (core dumped)
解决方法:
a)检查下载数据集与create_mnist.sh文件中的名字是否一致
b) 在caffe目录下跑数据集
$ ./examples/mnist/create_mnist.sh
2.draw_net.py中的问题
Traceback (most recent call last):
File "draw_net.py", line 58, in <module>
main()
File "draw_net.py", line 54, in main
phase)
File "/home/c/caffe/python/caffe/draw.py", line 244, in draw_net_to_file
fid.write(draw_net(caffe_net, rankdir, ext, phase))
File "/home/c/caffe/python/caffe/draw.py", line 223, in draw_net
return get_pydot_graph(caffe_net, rankdir, phase=phase).create(format=ext)
File "/usr/local/lib/python2.7/dist-packages/pydot.py", line 1867, in create
raise OSError(*args)
OSError: [Errno 2] "dot" not found in path.
解决方法
先安装graphviz否则会出现类似:"dot" not found in path的问题安装graphviz不要用pip install安装,否则还是会找不到可执行程序安装:sudo apt-get insall graphviz然后安装pydot:pip install pydot
convert_mnist_data.cpp:48] Check failed: image_file Unable to open file data/mnist/t10k-images-idx3-ubyte *** Check failure stack trace: ***
Aborted (core dumped)
解决方法:
a)检查下载数据集与create_mnist.sh文件中的名字是否一致
b) 在caffe目录下跑数据集
$ ./examples/mnist/create_mnist.sh
2.draw_net.py中的问题
Traceback (most recent call last):
File "draw_net.py", line 58, in <module>
main()
File "draw_net.py", line 54, in main
phase)
File "/home/c/caffe/python/caffe/draw.py", line 244, in draw_net_to_file
fid.write(draw_net(caffe_net, rankdir, ext, phase))
File "/home/c/caffe/python/caffe/draw.py", line 223, in draw_net
return get_pydot_graph(caffe_net, rankdir, phase=phase).create(format=ext)
File "/usr/local/lib/python2.7/dist-packages/pydot.py", line 1867, in create
raise OSError(*args)
OSError: [Errno 2] "dot" not found in path.
解决方法
先安装graphviz否则会出现类似:"dot" not found in path的问题安装graphviz不要用pip install安装,否则还是会找不到可执行程序安装:sudo apt-get insall graphviz然后安装pydot:pip install pydot
相关文章推荐
- Web开发敏捷之道-应用Rails进行敏捷Web开发-第三版 在用rails3.2学习过程中遇到的问题及解决方法
- 近期学习hadoop遇到的问题以及解决方法
- 学习shell 时遇到的问题(unexpected operator) 的解决方法
- 安卓学习中遇到的问题及解决方法
- 近期学习hadoop遇到的问题以及解决方法
- 最近学习J2EE遇到的问题及解决方法(一)
- 学习Hadoop时遇到的问题以及解决方法
- Git学习 -- 远程操作遇到error: failed to push some refs to问题解决方法
- 【原创】菜鸟学习Modelsim 之 遇到的问题及解决方法
- 学习中遇到的问题以及解决方法
- 学习django框架,记录所遇到的问题以及解决方法
- Idhttp 学习中遇到的问题 与 解决方法
- android 学习中遇到的问题及解决方法
- Caffe搭建:常见问题解决办法和ubuntu使用中遇到问题解决方法(持续更新)
- android 学习中遇到的问题及解决方法
- 学习css中遇到一个问题及解决方法
- 部分Linux学习遇到的问题及解决方法汇总
- 学习NHibernate时遇到的问题解决方法
- spark:学习过程中遇到的一些问题及解决方法(如何将本地文件发布到HDFS)--11
- 学习shell 时遇到的一些问题(unexpected operator) 和解决方法