Faster RCNN安装问题

对于Faster RCNN安装网上给出了很多的方法,这里只是记录自己遇到的几个比较奇怪的问题,当时在安装的时候由于这几个问题花费了大量时间,在这里记录下来,以期能够帮助遇到同样问题的网友。

第一个问题

/util/cudnn.hpp:127:41: error: too few arguments to function ‘cudnnStatus_t cudnnSetPooling2dDescriptor(cudnnPoolingDescriptor_t, cudnnPoolingMode_t, cudnnNanPropagation_t, int, int, int, int, int, int)’  
         pad_h, pad_w, stride_h, stride_w)); 

主要是由cudnn和caffe版本不兼容造成的

解决方法:

cd caffe-fast-rcnn  
git remote add caffe https://github.com/BVLC/caffe.git  
git fetch caffe  
git merge caffe/master  

Remove self_.attr("phase") = static_cast<int>(this->phase_); from include/caffe/layers/python_layer.hpp after merging.

第二个问题

/usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory

主要是犹豫python路径都改为了anaconda的路径,但是CPLUS的path没有设置,系统中我也没把aneconda设置成默认的python导致的。

解决方法:

make clean
export CPLUS_INCLUDE_PATH=/usr/include/python2.7
make all -j8

第三个问题

fatal error: caffe/proto/caffe.pb.h: No such file or directory

提示找不到caffe.pb.h,这里自己生成下就好了。

解决方法:

# In the directory you installed Caffe to
protoc src/caffe/proto/caffe.proto --cpp_out=.
mkdir include/caffe/proto
mv src/caffe/proto/caffe.pb.h include/caffe/proto

至于其他的,基本都是编译caffe的问题,网上给出了很多方法,基本都可以找到。

原文地址:http://blog.youkuaiyun.com/u011956147/article/details/53072624

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值