首先非常感谢以下两篇博客:
http://www.cnblogs.com/xuanxufeng/p/6016945.html caffe无GPU框架搭建
http://blog.sina.com.cn/s/blog_679f93560102wpyf.html rcnn无GPU环境搭建
基本上按照这两篇博客完成caffe框架的搭建,其中遇到一些博客中没有提到的问题,本篇博客做一下补充
问题1:Command "python setup.py egg_info" failed with error code 1 :skimage
解决方案:安装skimage模块
sudo apt-get install python-skimage (ubuntu环境下安装命令)。
问题2:执行 for req in $(cat requirements.txt); do pip install $req; done 命令时出错.
解决方案:个人觉得与requirements文本文件中顺序有关,调整顺序后成功。一下是我的文件内容:
scipy>=0.13.2
matplotlib>=1.3.1
networkx>=1.8.1
Pillow>=2.3.0
scikit-image>=0.9.3
ipython>=3.0.0
h5py>=2.2.0
leveldb>=0.191
nose>=1.3.0
pandas>=0.12.0
python-dateutil>=1.4.2
protobuf>=2.5.0
python-gflags>=2.0
pyyaml>=3.10
numpy>=1.7.1
Cython>=0.23.0
six>=1.1.0
问题3:make pycaffe 出现如下结果提示,说明make成功。
问题4: 键入 命令 [] $ python tools/demo.py--cpu
出现错误
除修改 nms_wrapper.py,函数中参数force_cpu=True 之外
还需要把nms_wrapper.py的第9行 from nms.gpu_nms import gpu_nms 注释掉。
--20161206