Git Product home page Git Product logo

Comments (5)

uricamic avatar uricamic commented on July 21, 2024

Hi @lddm,

if I remember correctly, this can happen only when the inappropriate weight vector W is used. Looking at the code this line seems to be suspicious:

typedef float  fl_double_t;

both the CDPM.xml and FDPM.xml are double. There is no check in the code for this so, I guess that causes the problem. The fl_double_t type should be propagated through the CMake compilation. But for now, just please check whether compiling with

typedef double  fl_double_t;

works. Or you can change the .xml models. However this can be done now only through MATLAB interface...

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

Hi @lddm,

I have also noticed that you use

CDPM->detect(&img_gray, &bbox[0]);
FDPM->detect(&img_gray, &bbox_corrected[0]);

please use

CDPM->detect_optimized(&img_gray, &bbox[0]);
FDPM->detect_optimized(&img_gray, &bbox_corrected[0]);

the models are generated for the optimized detection only. It won't work as expected with detect.

I have checked it now and it works with the changes I mentioned.

from clandmark.

lddm avatar lddm commented on July 21, 2024

Hi @uricamic ,
Thanks very much for your quick and complete response. I was reviewing your comments and will try the proposed changes as soon as I have a free minute.

I changed the typedef of the fl_double_t type because in the first test I done the propagation from the CMake wasn't working correctly. Maybe this was caused by an error from my side when configuring the project that consumes the library), now I believe this line is not necessary.The other change of using detect and not detect_optimized was a last minute idea, I will try to rollback that change.

I will let you know the results,
Best regards and thanks again

from clandmark.

lddm avatar lddm commented on July 21, 2024

Hi @uricamic ,
I have verified and corrected both the definition of the fl_double_t type and the use of the detect_optimized function. Now the demo application that I developed is working correctly. The landmarks position accuracy is really good.

I made some changes in the CMake configuration of the library in order to automate the integration of the library in another project.

I would like to thank you again for the assistance. Please let me know if I can be of any help or if it's useful for you to have the CMake configuration changes or code of the demo application.

Best regards,

from clandmark.

uricamic avatar uricamic commented on July 21, 2024

Hi @lddm,

glad to hear that.

If you want, you can share the project or the modifications you made to CMake configuration. Any kind of help is always welcome :)

from clandmark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.