Ask Your Question

Where can I find the caffe models for the Openpose sample of the dnn module?

asked 2018-02-16 05:07:04 -0500

graspergazon gravatar image

I tried to load the models from but the example code fails at assert(len(BODY_PARTS) == out.shape[1])

Am I using the right models? In the example a simplified model is mentioned. Does this mean that I need to load this simplified model? If this is the case, where can I find it?

edit retag flag offensive close merge delete


hehe, you're exactly the person, i've been looking for, playing with the very same thing !

are you using the COCO , or the MPI model ?

(in the case of COCO, it seems, you have to use out = net.forward("Mconv7_stage6_L2") (that is, stop before the final Concat layer) , else you get 57 heatmaps instead of the expected 19

we'll have to find out, what there is in the other 38 heatmaps, and how to make use of those ;)

berak gravatar imageberak ( 2018-02-16 05:16:03 -0500 )edit

i'm somehow suspecting, that the additional 38 heatmaps are the hand parts , but i'm not sure.

berak gravatar imageberak ( 2018-02-16 05:35:32 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2018-02-16 06:42:19 -0500

dkurt gravatar image

@graspergazon, @berak, usually we try to introduce a new model not only in samples but in tests too. In example, . You may find corresponding .prototxts at and .caffemodellinks at .

edit flag offensive delete link more


problem solved, thanks @dkurt !

berak gravatar imageberak ( 2018-02-16 06:46:56 -0500 )edit

answered 2018-04-09 08:09:19 -0500

Thanks for the data. The code works perfectly fine on ubuntu with opencv 3.4.1. I am trying to run the code on android platform using opencv 3.4.1 but I am getting an error. I have described the error in depth on the Github page. Here is the link:

It would be great if anyone can help me. I can share the android code. Your help will be highly appreciated.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2018-02-16 05:07:04 -0500

Seen: 489 times

Last updated: Feb 16 '18