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

Question about the 3D points (pose reference) #54

Closed
FunkyKoki opened this issue Dec 20, 2021 · 5 comments
Closed

Question about the 3D points (pose reference) #54

FunkyKoki opened this issue Dec 20, 2021 · 5 comments
Labels
question Further information is requested

Comments

@FunkyKoki
Copy link

FunkyKoki commented Dec 20, 2021

Thanks again for your contribution.

I have another question, how did you get the pose reference files, i.e. reference_3d_5_points_trans.npy, reference_3d_68_points_trans.npy, triangles.npy and vertices_trans.npy ?

@vitoralbiero
Copy link
Owner

The reference points are either 5 or 68 points extracted from the 3D model vertices.
The indices for the 68 points were provided by the 3D model we are using, and the 5 points we detected in a projection of the 3D model and mapped to their indices.
The triangles were also provided by the 3D model, and are the connections been the vertices.
The vertices we are using are the ones provided by the 3D model but flipped so that the face is facing the camera.

Hope this helps.

@FunkyKoki
Copy link
Author

Thanks for your answer, but I am still confusing. (I am deeply sorry to reply so late, because I have been playing Red Dead Redemption 2 for nearly a week).

What is the 3D face model you are using, is it publicly available? And how did you do this projection, is there any reference code?

@vitoralbiero
Copy link
Owner

I really like RDR2, it is a very great game!

The 3D face model used could be any generic 3D face model, as we are only using it to create the ground-truth pose labels, and rendering. You can download one here.

To map detected 2D points to their corresponding 3D points, you will need to get what we call an unprojection matrix. With that, you can easily map any 2D point in the rendered image to it's corresponding 3D point.
Unfortenately, I do not have code that I can share for this.

@FunkyKoki
Copy link
Author

Thank you so much for your answer.

@FunkyKoki
Copy link
Author

PS. RDR2 is great indeed.

@vitoralbiero vitoralbiero added the question Further information is requested label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants