Giter Site home page Giter Site logo

Request about face_specific_augm HOT 9 CLOSED

iacopomasi avatar iacopomasi commented on July 22, 2024
Request

from face_specific_augm.

Comments (9)

iacopomasi avatar iacopomasi commented on July 22, 2024

Hi @mashreve ,
thank you for your interest in the project.

First of all, you can remove the resize option using the configuration file.

Second, the rendered is not constrained to the size of the CNN input but is constrained by the unprojected matrix we are using.

In particular:

  • the renderer resolution is bounded to the size of the unprojected matrix that we load offline from the .mat files. This matrix is created a priori so it can't be modified online: this is the reason why our renderer is also very fast and does not need OpenGL.
  • additionally, even though you may render at higher resolutions by changing the unprojected matrix, probably the CNN software, you may be using, is going to resize the image to the template size of the CNN input, unless you are doing random cropping on the input image, which we did not in our implementation.

For more information on how to generate unprojected matrix see this project page

Hope this helps,
Best,
iacopo

from face_specific_augm.

someone9388 avatar someone9388 commented on July 22, 2024

@iacopomasi

Your project is so useful!

is it possible to get result of more poses? Right now it can only generate pose of 0 40 75 around y-axis. Could you kindly provide model of rotation around x-axis?

Thank you very much.

from face_specific_augm.

iacopomasi avatar iacopomasi commented on July 22, 2024

Hi @someone9388,
thanks for your interest in the project.

Yes, it is possible to add more poses even in pitch; currently we are working on it.
If you want, you can try to generate your own model starting from this project page

Hope this helps,
Best,
iacopo

from face_specific_augm.

thu-zxs avatar thu-zxs commented on July 22, 2024

Awesome project!

I have the same confusion as @someone9388, wondering how to generate model of more poses. I tried the code in here(the page you provided), but it only generate unprojected model of a fix pose while projected images' poses vary.

Also it seems hard to generate models in the same format as the .mat files you provided. But this is what I need. Is there any way to reach this?

Many thanks.

from face_specific_augm.

iacopomasi avatar iacopomasi commented on July 22, 2024

Hi @thu-zxs,
Thanks, we are glad this project is helping the community!

The code I pointed you is a starting point but I understand that a bit more of effort is needed to save the data in the same format we are using.

Moreover, the code does generate multiple poses: you just have to vary the parameter in the rendering function to render a different yaw, or pitch etc.

Finally, regarding the release of the code that generates the mat files, we did not plan to release it soon, but we may do it later on.

Hope this helps,
Cheers,
iacopo

from face_specific_augm.

TalHassner avatar TalHassner commented on July 22, 2024

from face_specific_augm.

thu-zxs avatar thu-zxs commented on July 22, 2024

@iacopomasi @TalHassner Thanks!

from face_specific_augm.

wanggongziZeo avatar wanggongziZeo commented on July 22, 2024

”Second, the rendered is not constrained to the size of the CNN input but is constrained by the unprojected matrix we are using.“
I want to know what is unprojected matrix???
Is it the camera matrix?

from face_specific_augm.

TalHassner avatar TalHassner commented on July 22, 2024

@wanggongziZeo

No, it's not.

unproject is a name we've been using to call a matrix of the same dimensions as the output image, but instead of RGB values, for each pixel it has the 3D coordinates of the surface point on the 3D face model, projected onto that pixel (hence "unproject"). This data structure is sometimes referred to by others as a "geometry map". A separate unproject matrix is required for every output view you want to render to (e.g., profile, frontal, etc.) and for every 3D face model you want to use. So, if you always render to frontal with the same 3D face model, you only need one such matrix.

The unproject matrix is the result of projecting 3D onto the 2D viewpoint. This step is a standard part of any rendering pipeline (e.g., if you ever use OpenGL). We precompute this matrix, thus saving a lot of runtime repeatedly computing it every time we render a face to our fixed output views (frontal, half-frontal, profile etc.).

The matrix itself can be produced using a variety of rendering libraries, but we used the OpenSceneGraph renderer packaged for MATLAB. Take a look at that webpage for a code snippet which I think will help explain things.

Yours,

Tal

from face_specific_augm.

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.