-
Notifications
You must be signed in to change notification settings - Fork 15
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
I found that tf models you used in your code is not the same as official tf models #15
Comments
Hi @hu394854434, Mediapipe just updated their face landmark model in commit 33d683c, after I created this repo. |
Thanks for your answer!And there is another question: |
Hi @hu394854434, I'm sorry for my late response. First, according to Face Mesh doc, I don't think the face landmark model alone can produce the real world distance. Thus, you need to use the Face Transform module mentioned in the Face Mesh doc (sorry but I can't help you with this). Second, the method getInputShape() is the input shape of the model (not the input image), the face width you need is the roi width (in pixel, of course). However, with iris landmarks, you can get the depth with the assumption that human iris diameter is roughly 11.7mm (just use thales theorem). |
I'm sorry for my late response too. I try to understand the c++ pipeline of mediapipe(like subgraph caculator etc),and I finally found out how the landmark is normalized here |
I don't know if you have done some operation to make your models have the same output as offcial models
The text was updated successfully, but these errors were encountered: