py-faster-rcnn个人问题汇总

基本配置
ubuntu 16.04
cuda:9.0.176
cudnn:7.0.5
GPU: Tesla P100 *2

主要遇到的问题是以下关于兼容性的两个问题
Check failed: status == CURAND_STATUS_SUCCESS (201 vs. 0) CURAND_STATUS_LAUNCH_FAILURE
https://github.com/BVLC/caffe/issues/5195
Check failed: status == CUBLAS_STATUS_SUCCESS (13 vs. 0)
CUBLAS_STATUS_EXECUTION_FAILED",
https://github.com/BVLC/caffe/issues/2417
github上的方法均无法解决cuda,cudnn版本问题
https://blog.csdn.net/u013249853/article/details/79827479
同时这篇博客也写到暂时的解决方法只有转换为cuda 8

也尝试使用过在make all,make test,make runtest前加上sudo,make runtest依然有问题。

还有一些回答是在caffe-fast-rcnn文件夹中将./include/caffe/util/cudnn.hpp换成最新版的caffe里的cudnn的实现,即相应的cudnn.hpp.和将./include/caffe/layers里的,所有以cudnn开头的文件,例如cudnn_conv_layer.hpp。 都替换成最新版的caffe里的相应的同名文件。也同样不能支持cuda 9 cudnn7,但可以支持cuda 8。

同时不仅尝试了py-faster-rcnn中的caffe-fast-rcnn,也尝试了直接caffe(https://github.com/BVLC/caffe),caffe-master(https://github.com/BVLC/caffe/tree/master),均在runtest阶段全部失败。

https://github.com/rbgirshick/py-faster-rcnn/issues/237
解决老版本不支持cudnn v5的问题。
https://blog.csdn.net/yhaolpz/article/details/71375762
为caffe基本的安装流程。

在不改变配置的情况下,再次尝试caffe2,但caffe2的安装网页上写这
If you plan to use GPU instead of CPU only, then you should install NVIDIA CUDA 8 and cuDNN v5.1 or v6.0, a GPU-accelerated library of primitives for deep neural networks.
似乎cuda 9+cudnn 7又凉了。按不同安装方式的步骤安装了几轮也都没成功。

以下为一些遇到小问题的集合:
指令:make test
问题:
src/caffe/test/test_smooth_L1_loss_layer.cpp:11:35: fatal error: caffe/vision_layers.hpp: No such file or directory
解决:
src/caffe/test/test_smooth_L1_loss_layer.cpp重命名为test_smooth_L1_loss_layer.cpp.orig

指令:
cd $FRCN_ROOT
./tools/demo.py
问题:
File “demo.py”, line 137
print ‘\n\nLoaded network {?}’.format(caffemodel)
^
SyntaxError: invalid syntax
解决:
python3的环境下
修改print ‘\n\nLoaded network {?}’.format(caffemodel)为
print (’\n\nLoaded network {?}’.format(caffemodel))

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值