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

For custom dataset, Which keypoint model should I use? #15

Open
kdh4672 opened this issue Dec 2, 2020 · 1 comment
Open

For custom dataset, Which keypoint model should I use? #15

kdh4672 opened this issue Dec 2, 2020 · 1 comment

Comments

@kdh4672
Copy link

kdh4672 commented Dec 2, 2020

I finished the example that makes a man's face be warped to Obama's face.

As long as I know, If I want to warp custom face to another, I should prepare 2d keypoints for source and target face.

Can DepthNet model output 2dkeypoints?

If it is not, can you recommend good 2dkeypoints model?

Thank you!

@christopher-beckham
Copy link
Collaborator

Hi,

Sorry for the enormously long delay in response, I am sure by now my response is most likely irrelevant because you've either found the answer or moved onto something else. No DepthNet by itself cannot regress 2D keypoints. Internally, when we needed to extract 2D keypoints from a face we used @SinaHonari 's recombinator network, though if I remember correctly the implementation was in Theano (which by today's standards is ancient). You should use whatever off-the-shelf keypoint extractor you can find online (there should be many).

If the keypoint extractor ends up extracting 68 keypoints, you could use this diagram to help you figure out what two keypoint coordinates you need to remove in order to make it 66 (it's a bit of a hack but it should suffice):

https://github.com/tarunk04/P1_Facial_Keypoints/blob/master/images/landmarks_numbered.jpg?raw=true

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

2 participants