日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

搭建及训练py-R-FCN遇到的问题

發(fā)布時(shí)間:2024/9/21 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 搭建及训练py-R-FCN遇到的问题 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

搭建py-R-FCN遇到的問(wèn)題記錄。

make pycaffe 報(bào)錯(cuò)

[html] view plain copy

???? ?

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

?

訓(xùn)練的時(shí)候遇到的問(wèn)題:AttributeError: 'module' object has no attribute 'text_format'

之前遇到過(guò),沒(méi)記錄,現(xiàn)在記錄下來(lái)。解決方法:

在出錯(cuò)的文件里加上:import google.protobuf.text_format

我這里錯(cuò)誤提示在train.py里,所以找到train.py加上import google.protobuf.text_format
--------------------- ?
作者:Bankeey ?
來(lái)源:CSDN ?
原文:https://blog.csdn.net/Bankeey/article/details/77573860 ?
版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上博文鏈接!

總結(jié)

以上是生活随笔為你收集整理的搭建及训练py-R-FCN遇到的问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。