Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
miyatat opened this issue Mar 29, 2019 · 4 comments

Comments

@miyatat
Copy link

miyatat commented Mar 29, 2019

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
Copy link
Owner

xw-hu commented Mar 29, 2019

Did you use our CF-Caffe?

@miyatat
Copy link
Author

miyatat commented Mar 29, 2019

Oooppps, Sorry, try it.

@miyatat miyatat closed this as completed Mar 29, 2019
@guanhuankang
Copy link

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
Copy link
Owner

xw-hu commented Aug 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants