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

Caffe Master Branch Clip Layer prevents Openpose from loading model #799

Closed
jpapon opened this issue Aug 28, 2018 · 8 comments
Closed

Caffe Master Branch Clip Layer prevents Openpose from loading model #799

jpapon opened this issue Aug 28, 2018 · 8 comments

Comments

@jpapon
Copy link

jpapon commented Aug 28, 2018

I am making a new issue for this, since OP closed #787.

Basically, Caffe Master recently added a clip layer that conflicts with a clip layer contained in the Body Pose 25 weights file. This causes a run-time failure when the model is loaded.
Reverting Caffe to BVLC/caffe@f019d0d fixed the issue for me.

I just changed from master to f019d0dfe86f49d1140961f8c7dec22130c83154 in the two relevant places:

execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)

and
execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/3rdparty/caffe)

It probably makes sense to switch to a specific tag or commit rather than master to avoid this type of issue in the future.

@gineshidalgo99
Copy link
Member

We are using our own Caffe (that is basically a version that we know that works from master Caffe), so we are effectively using a specific tag. It works on my case with no problem, maybe re-downloading it and re-compiling it?

@gineshidalgo99 gineshidalgo99 added the help wanted/question Extra attention is needed label Sep 2, 2018
@jpapon
Copy link
Author

jpapon commented Sep 2, 2018

Ah, you know, I've been using the main line Caffe, which worked until a couple of weeks ago. Your fork works fine. Apologies.

@jpapon jpapon closed this as completed Sep 2, 2018
@gineshidalgo99
Copy link
Member

Thanks for the feed-back. Best

@rmc7
Copy link

rmc7 commented Jan 2, 2019

#949

@gineshidalgo99
Copy link
Member

gineshidalgo99 commented Jan 5, 2019

I was finally able to replicate the error and fix it. Our latest https://github.com/CMU-Perceptual-Computing-Lab/caffe
should handle it now. Simply remove the whole OpenPose folder and re-install it completely (so the new Caffe is updated, otherwise the OpenPose Caffe would not be updated).

Let me know if it still fails.

@aaron-michaux
Copy link

So I got the same error: Clip Layer prevents Openpose from loading model. I am Openpose's version of caffee.

[libprotobuf ERROR google/protobuf/message_lite.cc:118] Can't parse message of type "caffe.NetParameter" because it is missing required fields: layer[0].clip_param.min, layer[0].clip_param.max

This is running the code from example1

@gineshidalgo99
Copy link
Member

Use the latest code with the default Caffe that OpenPose provides (i.e., remove your current repo, and re-clone it again so the default Caffe of OpenPose is updated). Thanks!

@aaron-michaux
Copy link

Actually lddtree indicated that my executable was linking against the wrong libcaffe.so. Blergh.

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

No branches or pull requests

4 participants