xw-hu / DSC

CVPR 2018 (Oral) & TPAMI 2019
141 stars 35 forks source link

During running DSC_test.ipynb, "caffe.LayerParameter" has no field named "irnn_param". #14

Closed miyatat closed 5 years ago

miyatat commented 5 years ago

During running DSC_test.ipynb, "caffe.LayerParameter" has no field named "irnn_param".

My Spec/Environment: anaconda, caffe-gpu on Ubuntu18.04 Caffe was installed by Conda install.

On running net = caffe.Net('deploy.prototxt', 'snapshot/DSC_iter_12000.caffemodel', caffe.TEST)

Error below:

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0329 21:54:29.432673  3982 _caffe.cpp:139] DEPRECATION WARNING - deprecated use of Python interface
W0329 21:54:29.432858  3982 _caffe.cpp:140] Use this instead (with the named "weights" parameter):
W0329 21:54:29.432874  3982 _caffe.cpp:142] Net('/home/einstein/DSC/examples/DSC/DSC_detection/deploy.prototxt', 1, weights='/home/einstein/DSC/examples/DSC/DSC_detection/snapshot/DSC_iter_12000.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:307] Error parsing text-format caffe.NetParameter: 524:15: Message type "caffe.LayerParameter" has no field named "irnn_param".
F0329 21:54:29.437965  3982 upgrade_proto.cpp:88] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /home/einstein/DSC/examples/DSC/DSC_detection/deploy.prototxt
*** Check failure stack trace: ***

Thanks.

xw-hu commented 5 years ago

Did you use our CF-Caffe?

miyatat commented 5 years ago

Oooppps, Sorry, try it.

guanhuankang commented 4 years ago

Oooppps, Sorry, try it.

Hello, I met with the similar problem and I just want to run the test code. I have tried to configure the environment as author's recommend, and I have spent the whole night but still with no luck. So I want to know how to fix this problem rather than install caffe again! Thank you for any help!

Error Msg

W0822 15:55:31.530463 4904 _caffe.cpp:178] Net('deploy.prototxt', 1, weights='snapshot/DSC_iter_12000.caffemodel') [libprotobuf ERROR C:\ci\libprotobuf_1523040574637\work\src\google\protobuf\text_format.cc:288] Error parsing text-format caffe.NetParameter: 524:15: Message type "caffe.LayerParameter" has no field named "irnn_param". F0822 15:55:31.576437 4904 upgrade_proto.cpp:90] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: deploy.prototxt Check failure stack trace:

Reproduce

I install caffe with anaconda, and transfer the examples/DSC/DSC_detection/DSC_test.ipynb to DSC_test.py(.py file). Then run DSC_test.py at the terminal. The error caused by the following code

net = caffe.Net('deploy.prototxt', 'snapshot/DSC_iter_12000.caffemodel', caffe.TEST)

Thank you for any help! Best-_-

xw-hu commented 4 years ago

Please follow the README to download and compile our CF-Caffe.