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

Is there a quantized float16 version of the face_mesh_landmark.tflite model file? #5773

Open
zhanxuejie opened this issue Dec 9, 2024 · 3 comments
Assignees
Labels
legacy:face mesh Issues related to Face Mesh platform:android Issues with Android as Platform platform:python MediaPipe Python issues type:modelmaker Issues related to creation of custom on-device ML solutions

Comments

@zhanxuejie
Copy link

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

android11, linux

Python Version

3.9

MediaPipe Model Maker version

No response

Task name (e.g. Image classification, Gesture recognition etc.)

facial keypoint recognition

Describe the actual behavior

The existing face_mesh_landmark.tflite is in float32 format.

Describe the expected behaviour

Expected face_cesh_1andmark.tflie to have float16 format and saved'model format

Standalone code/steps you may have used to try to get what you need

face_mesh_landmark.tflite

Other info / Complete Logs

No response

@zhanxuejie zhanxuejie added the type:modelmaker Issues related to creation of custom on-device ML solutions label Dec 9, 2024
@zhanxuejie
Copy link
Author

zhanxuejie commented Dec 9, 2024

Hi, I would like to confirm if the face_landmark.tflite provided by mediapipe is float16 or float32. Could you provide me with a file resource in saved_madel format? I would like to use it for quantization and verify the effects of float32, float16, and int8 on my application. Thank you in advance!

@kalyan2789g kalyan2789g added platform:python MediaPipe Python issues platform:android Issues with Android as Platform legacy:face mesh Issues related to Face Mesh labels Dec 9, 2024
@kalyan2789g
Copy link
Collaborator

Hi @zhanxuejie, We appreciate your interest in MediaPipe! While we previously offered a legacy system for Face Mesh landmarks, it has been superseded by our more advanced Face Landmark Detection solution.

To ensure the best performance and access to the latest features, we recommend using the newest version of MediaPipe. You can find it here.

If you encounter any difficulties after migrating to the latest version, requesting you to please let us know. We're happy to assist you further.

Thanks,
@kalyan2789g

@kalyan2789g kalyan2789g added the stat:awaiting response Waiting for user response label Dec 9, 2024
@zhanxuejie
Copy link
Author

Hi @zhanxuejie, We appreciate your interest in MediaPipe! While we previously offered a legacy system for Face Mesh landmarks, it has been superseded by our more advanced Face Landmark Detection solution.

To ensure the best performance and access to the latest features, we recommend using the newest version of MediaPipe. You can find it here.

If you encounter any difficulties after migrating to the latest version, requesting you to please let us know. We're happy to assist you further.

Thanks, @kalyan2789g

@kalyan2789g hi, thank you very much for your answer.

The latest solution I see is to package the model file and post-processing operations into a. task file, and I noticed that the latest model is float16. I hope to deploy my application on mobile devices, so I need a. tflite model file. How can I obtain the latest. tflite model?

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:face mesh Issues related to Face Mesh platform:android Issues with Android as Platform platform:python MediaPipe Python issues type:modelmaker Issues related to creation of custom on-device ML solutions
Projects
None yet
Development

No branches or pull requests

2 participants