搭建及训练py-R-FCN遇到的问题
2017-08-25 14:36
309 查看
搭建py-R-FCN遇到的问题记录。
make pycaffe 报错
src/caffe/layers/box_annotator_ohem_layer.cu(49): error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>>
&) [with Dtype=float]"
(80): here
src/caffe/layers/box_annotator_ohem_layer.cu(49): error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>>
&) [with Dtype=double]"
(80): here
2 errors detected in the compilation of "/tmp/tmpxft_0000339c_00000000-19_box_annotator_ohem_layer.compute_61.cpp1.ii".
Makefile:595: recipe for target '.build_release/cuda/src/caffe/layers/box_annotator_ohem_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/box_annotator_ohem_layer.o] Error 1
解决方法:
box_annotator_ohem_layer uses C++11 features, you need to make changes to the makefile
修改makefile
319行部分改成:
ifeq ($(DEBUG), 1)
COMMON_FLAGS += -DDEBUG -g -O0 -std=c++11
NVCCFLAGS += -G
else
COMMON_FLAGS += -DNDEBUG -O2 -std=c++11
endif
训练的时候遇到的问题:AttributeError: 'module' object has no attribute 'text_format'
之前遇到过,没记录,现在记录下来。解决方法:
在出错的文件里加上:import google.protobuf.text_format
我这里错误提示在train.py里,所以找到train.py加上import google.protobuf.text_format
make pycaffe 报错
src/caffe/layers/box_annotator_ohem_layer.cu(49): error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>>
&) [with Dtype=float]"
(80): here
src/caffe/layers/box_annotator_ohem_layer.cu(49): error: a template argument may not reference a local type
detected during instantiation of "void caffe::BoxAnnotatorOHEMLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>> &, const std::vector<caffe::Blob<Dtype> *, std::allocator<caffe::Blob<Dtype> *>>
&) [with Dtype=double]"
(80): here
2 errors detected in the compilation of "/tmp/tmpxft_0000339c_00000000-19_box_annotator_ohem_layer.compute_61.cpp1.ii".
Makefile:595: recipe for target '.build_release/cuda/src/caffe/layers/box_annotator_ohem_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/box_annotator_ohem_layer.o] Error 1
解决方法:
box_annotator_ohem_layer uses C++11 features, you need to make changes to the makefile
修改makefile
319行部分改成:
ifeq ($(DEBUG), 1)
COMMON_FLAGS += -DDEBUG -g -O0 -std=c++11
NVCCFLAGS += -G
else
COMMON_FLAGS += -DNDEBUG -O2 -std=c++11
endif
训练的时候遇到的问题:AttributeError: 'module' object has no attribute 'text_format'
之前遇到过,没记录,现在记录下来。解决方法:
在出错的文件里加上:import google.protobuf.text_format
我这里错误提示在train.py里,所以找到train.py加上import google.protobuf.text_format
相关文章推荐
- 使用py-faster-rcnn训练VOC2007数据集时遇到问题
- windows下训练FCN模型所遇到的问题
- windows下训练FCN模型所遇到的问题
- 训练FCN时遇到的问题总结
- 搭建阿里云服务器(ubuntu)时遇到的问题(一)
- 关于在WindowsXp 环境下Python2.6 + web.py 构建WEB开发环境遇到的问题
- VS Code1.4 搭建Golang的开发调试环境(遇到很多问题)
- TX1上使用Faster-RCNN训练自己的训练集遇到的问题与解决
- 搭建集群时遇到各种奇葩问题的大招~~
- 自己搭建openfire即时通讯服务器遇到的问题
- Hadoop-2.7.3集群搭建中遇到的问题总结
- Maven搭建SpringMVC+Mybatis项目时遇到的问题记录
- hadoop环境搭建过程及搭建过程遇到的问题及解决的办法
- 【Database-cluster】mycat集群搭建过程中遇到的几个问题
- https,https的本地测试环境搭建,asp.net结合https的代码实现,http网站转换成https网站之后遇到的问题
- 搭建SSH框架时遇到的问题及解决方法
- 使用opencv_traincascade训练遇到的问题总汇
- 在ubuntu环境下搭建svn server遇到的一些问题
- spark集群详细搭建过程及遇到的问题解决(三)
- IDEA上面搭建一个SpringBoot的web-mvc项目遇到的问题