AaronJackson / vrn

:man: Code for "Large Pose 3D Face Reconstruction from a Single Image via Direct Volumetric CNN Regression"
http://aaronsplace.co.uk/papers/jackson2017recon/
MIT License
4.52k stars 746 forks source link

Dlib's Facial Landmarks #64

Closed berberakif closed 6 years ago

berberakif commented 6 years ago

Hi,

I am trying to get 68 facial landmarks' 3D coordinates. I run Adrian's face-alignment module with "3D-full" type and export the values from "preds_hm" array in main.lua file. It gives me 68 x,y,z coordinates and when I plot them they look as if they are 68 landmark's 3D positions. But the problem is these coordinates are not matching to the "obj" file's values.

Is there a way to get exact positions of the 68 facial landmarks' 3D coordinates on the converted (via raw2obj.py) .obj output?

Thanks in advance.

AaronJackson commented 6 years ago

Yes, the volumetric representation results in a loss of correspondence between points. There is probably a fixed linear transformation to match the keypoints to the mesh, however.

berberakif commented 6 years ago

Thanks for quick reply!

Do you suggest me to use .raw output to match landmarks with or is there another suggestion that I can get the matching landmarks of .obj output? Or is it possible to extract the keypoints directly from the .obj output?