使用DIGITS运行时候遇到的问题,下面是我的总结和解决方案,当然,需要我已经调好的digits也可以联系我,在下方留言
问题1:ValueError: Caffe executable not found in PATH
解决方法:
export CAFFE_HOME="/home/wzh/caffe-master"
source /etc/profile
问题2:File "/usr/local/lib/python2.7/dist-packages/matplotlib/__init__.py", line 126, in <module>
from . import cbook
ImportError: cannot import name cbook
解决办法:参考https://www.cnblogs.com/go-better/p/7737551.html
<span style="color:#000000">sudo pip uninstall matplotlib
sudo apt-<span style="color:#0000ff">get</span> install python-matplotlib</span>
问题3:Can't pickle <class 'caffe.proto.caffe_pb2.NetParameter'>: it's not the same object as caffe.proto.caffe_pb2.NetParameter
解决:参考https://blog.csdn.net/u014285910/article/details/86521518
修改很多文件:
具体修改我已经打包成图片,附带一个网站页面,用火狐打开
问题4:Couldn't import dot_parser, loading of dot files will not be possible.
解决:参考https://www.cnblogs.com/qq952693358/p/8724028.html
这是因为当前pydot和pyparsing的版本不兼容,解决方法是使用pip安装pydot和pyparsing的旧版本:
<span style="color:#000000"><code>pip install pyparsing==1.5.7</code>
<code>pip install pydot==1.0.28</code></span>