Giter VIP home page Giter VIP logo

Comments (3)

uricamic avatar uricamic commented on June 2, 2024

Hi @yurinativo,

excellent question. Thanks a lot for asking it. I have totally overlooked this in the Python interface.

If you look at the C++ example you will see the answer to your question and also what is missing in the Python interface now.

The detector returns also a score (the higher the score, the better the fit of landmarks), the multi-view model is learned in such a way that this score can be used to determine the viewpoint. The viewpoint detection is done simply by taking the model which maximizes this score.

If you wanna a quick fix, simply change this line to the following one:

return landmarks, self.thisptr.getScore()

and add the following line here:

fl_double_t getScore()

and recompile the python interface. Your script will then need a minor modification of this line
Ps.append(flandmarks[j].detect_optimized(arr, bbox)) where you simply first call the detect_optimized function and store both landmarks and score of each viewpoint. Then by getting the argmax over the array containing scores you will have the id of the "correct" viewpoint.

I will apply this fix as well, it might just take some time (do not have access to the repo sources on this computer now).

Hope I described it clearly, if you have any questions, please do not hesitate to ask further ;-)

from clandmark.

yurinativo avatar yurinativo commented on June 2, 2024

Thanks Michal,

This solution worked perfectly!

from clandmark.

uricamic avatar uricamic commented on June 2, 2024

Hi @yurinativo,

no problem ;-)

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.