beacandler / R2CNN

caffe re-implementation of R2CNN: Rotational Region CNN for Orientation Robust Scene Text Detection
80 stars 27 forks source link

Message type "caffe.LayerParameter" has no field named "roi_pooling_param" #2

Closed gittigxuy closed 6 years ago

gittigxuy commented 6 years ago

make:进入目录'/home/xuy/code/R2CNN/src/lib/fastnms' make: “adaptor.so”是最新的。 make:离开目录“/home/xuy/code/R2CNN/src/lib/fastnms” WARNING: Logging before InitGoogleLogging() is written to STDERR W0407 13:56:59.493078 26902 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface W0407 13:56:59.493132 26902 _caffe.cpp:140] Use this instead (with the named "weights" parameter): W0407 13:56:59.493141 26902 _caffe.cpp:142] Net('/home/xuy/code/R2CNN/model/prototxt/test/TextBoxes-v3.prototxt', 1, weights='/home/xuy/code/R2CNN/model/caffemodel/TextBoxes-v2_iter_12w.caffemodel') [libprotobuf ERROR google/protobuf/text_format.cc:274] Error parsing text-format caffe.NetParameter: 483:21: Message type "caffe.LayerParameter" has no field named "roi_pooling_param". F0407 13:56:59.494863 26902 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/xuy/code/R2CNN/model/prototxt/test/TextBoxes-v3.prototxt Check failure stack trace: Aborted (core dumped)

gittigxuy commented 6 years ago

我没有用docker进行编译,我参考了https://github.com/YuwenXiong/py-R-FCN,进行编译安装caffe

beacandler commented 6 years ago

@gittigxuy 可以的,代码是基于py-R-FCN的

gittigxuy commented 6 years ago

那为什么报错说找不到roi_pooling_param呢?原来的py-R-FCN里面是需要git microsoft的caffe,是不是caffe的版本问题呢?我应该怎么做呢?

beacandler commented 6 years ago

image 可以看到docker安装的也是ms-caffe,编译成功后,应该不会出问题的。我建议下次把具体的错误信息贴出来,以便可以仔细排查。

gittigxuy commented 6 years ago

完整的报错信息已经贴到了1层,主要的问题是找不到roi pooling param

beacandler commented 6 years ago

image @gittigxuy 可以看到是在ROIPooling层出的错误,这说明不是笔者算法代码的错误,而是caffe编译的错误。我建议首先确保R-FCN的demo能够运行正确,然后再来运行RRCNN.

gittigxuy commented 6 years ago

R-FCN的demo已经成功运行,但是仍然报找不到roi_pooling default

我的操作步骤如下: 在r2cnn的根目录下 1)git clone https://github.com/Microsoft/caffe.git 2)可以成功编译Microsoft/caffe的make以及make pycaffe 3)改一下demo.py里面的模型路径

default

麻烦作者重新git一下你这个repo,看看在你的环境下是否会出现我的问题,谢谢了

beacandler commented 6 years ago

@gittigxuy 你先确保下demo.sh调用的是ms-caffe?

gittigxuy commented 6 years ago

很对,系统默认调用了其他的caffe的python接口,将环境变量改一下就好了,谢谢了