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

Why facial landmarks are not recognized correctly #32

Open
rezalahmi opened this issue Apr 20, 2023 · 3 comments
Open

Why facial landmarks are not recognized correctly #32

rezalahmi opened this issue Apr 20, 2023 · 3 comments

Comments

@rezalahmi
Copy link

front_68_landmarks
front_445_landmarks
I think something is wrong!!!! the model can detect 68 landmarks but for more landmarks and mesh, generate wrong landmarks

@sophiajwagner
Copy link

Hi, could you solve this issue? I have the same problem.

@rezalahmi
Copy link
Author

Hi, could you solve this issue? I have the same problem.

Hi, Unfortunately no

@t-martyniuk
Copy link
Collaborator

t-martyniuk commented Nov 7, 2023

Hi!
@rezalahmi , is it the demo.py script you're running, but with different type_of_output values? are you sure that the input to both inference runs is the same?

I think the problem is that the model expects a loose head crop (see Section 4 "Method" of the paper), and here the image you're using has much more space around the head than it's required. The demo script uses different branches of the network for the "68 points" type of output and all the other subsets of points (2D branch and reprojections of 3D branch, respectively). While the 2D branch is quite robust to different inputs, - the 3D branch is quite sensitive to the head crop provided.
Hope this helps to understand better the discrepancy in the results.
For better results, please use either off-the-shelf or custom head detector, and use offset of ~10% (I refer you to

def _parse_anno(self, item_anno: Dict[str, Any]) -> Dict[str, Any]:
for the context, L96-99).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants