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

Converting caffemodel to npy file error #2

Closed
m-Just opened this issue Jul 25, 2017 · 2 comments
Closed

Converting caffemodel to npy file error #2

m-Just opened this issue Jul 25, 2017 · 2 comments

Comments

@m-Just
Copy link

m-Just commented Jul 25, 2017

When I ran python caffemodel2npy.py deploy.prototxt ../deeplab/ResNet101/init.caffemodel/model/ResNet101_init.npy, an error occurred as the following.

WARNING: Logging before InitGoogleLogging() is written to STDERR
W0725 18:40:56.169318 9626 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface
W0725 18:40:56.169384 9626 _caffe.cpp:123] Use this instead (with the named "weights" parameter):
W0725 18:40:56.169395 9626 _caffe.cpp:125] Net('deploy.prototxt', 1, weights='../deeplab/ResNet101/init.caffemodel')
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 15:16: Message type "caffe.LayerParameter" has no field named "interp_param".
F0725 18:40:56.173895 9626 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: deploy.prototxt
*** Check failure stack trace: ***
Abort (core dumped)

What can the problem possibly be?

@chenxi116
Copy link
Owner

Most likely it's because your caffe does not support deeplab layers. You can use mine: https://github.com/chenxi116/caffe/tree/feature/20160617_cb_softattention

@m-Just
Copy link
Author

m-Just commented Jul 26, 2017

It worked. Thanks bunches!

@m-Just m-Just closed this as completed Jul 26, 2017
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

2 participants