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

Detection from matlab and c++ different #23

Open
adtadhikari opened this issue Oct 16, 2013 · 7 comments
Open

Detection from matlab and c++ different #23

adtadhikari opened this issue Oct 16, 2013 · 7 comments

Comments

@adtadhikari
Copy link

I tried running the detection in c++ and matlab but it is not the same. The matlab detection is better than the c++ one. What may be the reason? What are the difference between the matlab and the c++ code? I am using the Person_26parts model.

@adtadhikari
Copy link
Author

@hbristow do you have any idea regarding this? What is the difference in the human pose detection for 26 parts between matlab and the c++ version?

@AASanchezA
Copy link

I found a similar issue, I tried the original code from Ramanan (http://www.ics.uci.edu/~dramanan/software/pose/pose-release1.2-full.tgz) and then tried your code, and the result are similar, but there is displacement between the result, I checked the visualization part and is not there the problem, my idea is that it could be where you generate the boundingbox, because the upper left corner of the boundingbox coincides with almost the center bounding box in the matlab implementation, this pics show the problem,

C++
fish_c _bristol

matlab Ramanan
im0279
skeleton best
im0279

@adtadhikari
Copy link
Author

Yeah my problem was similar but I was testing it with people. Please let me know if you are able to solve this problem.

@AASanchezA
Copy link

HI, I didn't propperly solve the problem, but I found where is it, is in the DynamicProgram.cpp, where you calculate the bounding rectangle and add it to the Candidate, thre is a rounding problem between the scale and the size of the image, my solution in not working properly, but for my it is enough!! you can check my fork

@legolas123
Copy link

I am also seeing a huge difference in the outputs between matlab and c++ code. Did anyone find difference between these sets of codes?

@kvikrama
Copy link

In Matlab code pyramid generation also creates a border. This part of code is commented in C code.
Uncommenting also didnt improve the detection.
I feel that scaling (resizing) is different in C++ and matlab. Has anyone made progress in this area ?
I am also struck here for sometime.

@simonamaggio
Copy link

Hi all,

I also found out that the proposed xml model for people (Person_26parts.xml) is slightly different from the matlab model PARSE_model.mat released in http://www.ics.uci.edu/~dramanan/software/pose/pose-release1.2-full.tgz. Generating a new .xml file starting from the .mat models resulted in a more precise person detector.

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

5 participants