mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Blendshape scores and facial_transformation_matrixes in holistic model

Open ChristianNSchmitz opened this issue 1 year ago • 6 comments

MediaPipe Solution (you are using)

Python version 0.10.11

Programming language

Python

Are you willing to contribute it

None

Describe the feature and the current behaviour/state

I would like to ask you whether the updated holistic model includes blend shape scores and the facial_transformation_matrixes. If not, I would like to ask if you could include these metrics. Thanks a lot! Christian

Will this change the current API? How?

No response

Who will benefit with this feature?

No response

Please specify the use cases for this feature

Research

Any Other info

No response

ChristianNSchmitz avatar Mar 27 '24 10:03 ChristianNSchmitz

Hi @ChristianNSchmitz,

If you refer to the HolisticLandmarkerResult API documentation, you will notice that Blendshape is listed as optional, and currently, Facial Transformation matrices are not included. However, we are actively working on updating the documentation, which will be released soon. Unfortunately, we are unable to provide an exact date at this time.

Thank you!!

kuaashish avatar Mar 28 '24 06:03 kuaashish

Dear @kuaashish, thank you very much for your response! For our use case, we would like to project the face back to a normalised space in order to make it comparable. Would you have a suggestion how to do that without the transformation matrix or to extract the transformation matrix somewhat differently?

ChristianNSchmitz avatar Mar 28 '24 08:03 ChristianNSchmitz

Hi @ChristianNSchmitz,

I apologize for the delayed response. Could you please confirm if this issue has been resolved on your end, or if you still require assistance from us?

Thank you!!

kuaashish avatar Jun 28 '24 07:06 kuaashish

Dear @kuaashish , That is no problem at all, thanks for getting back to me! Unfortunately, due to issue #5461 we've could use the holistic model for the last months. Thus, the issue is still unresolved and we might need some more assistance (but cannot test it currently). Best Chris

ChristianNSchmitz avatar Jun 29 '24 04:06 ChristianNSchmitz

suggestion how to do that without the transformation matrix or to extract the transformation matrix somewhat differently?

Sorry to bother, I am solving a problem that might similar to yours. So would you please help? I am using the basic mediapipe model. I currenty have NormalizedLandmark_A(which could be drawn on image once mulplied by image width and image height) and facial_transformation_matrixes_A (a 4x4 ndarray). I need to put this expression onto another reference image using its facial_transformation_matrixes_B. Is there any suggestion for me to do this? Thank you.

yanhn avatar Jul 09 '24 11:07 yanhn

Hi @ChristianNSchmitz,

Currently, Facial Transformation matrices are not part of Holistic, as it only returns Blendshape scores. Additionally, there is no straightforward method to obtain Facial Transformation matrices at this time. However, we are marking this as a feature request to keep it on our radar. Depending on future demand, we may implement these matrices.

Thank you!!

kuaashish avatar Jul 29 '24 09:07 kuaashish