Coder Social home page Coder Social logo

Comments (2)

RichardWenz avatar RichardWenz commented on July 4, 2024

What i understand from the code that 'center' and 'scale' are used to make the bounding box so they will predict according with the area of bounding box. If you check again the function of utils.bounding_box, you will see there are initialization of 'center' and 'scale'.

For .t7 i cannot certainly sure about my thought, but this is how i get it. Those .t7 files that existed are used to get information for landmark localization of each images in the dataset that provided (since that dataset is provided from another) and they used 68 points of landmark localization for the face alignment.

I hope my explanation could help you to understand how it works, because i also face the same problem as yours.

The easiest way to run the code with your own image is make new figure to display your own image and use similar gnuplot setup from original dataset. Then, adjust it (scale and center) according with your own images.

Best Regards.

from binary-face-alignment.

1adrianb avatar 1adrianb commented on July 4, 2024

@ncuxiaogang The code doesn't directly support this as of this point but it should be straight forward to adapt it. The method expects a bounding box of the face based on which an aproximative scale and center of the face is computed. You can of course also directly try to supply the center and the scale.
I will be updating the code this month at some point to make it easier to run it on your own data.

from binary-face-alignment.

Related Issues (12)

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.