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

Any plan to support newly released mediapipe blendshape v2? #4

Closed
sylyt62 opened this issue Jul 7, 2023 · 6 comments
Closed

Any plan to support newly released mediapipe blendshape v2? #4

sylyt62 opened this issue Jul 7, 2023 · 6 comments

Comments

@sylyt62
Copy link

sylyt62 commented Jul 7, 2023

Do you have any plan to transfer mediapipe blendshape model to onnx/trt?

ref link: https://storage.googleapis.com/mediapipe-assets/Model%20Card%20Blendshape%20V2.pdf

@PINTO0309
Copy link
Owner

I don't see the point of converting the same model.

@sylyt62
Copy link
Author

sylyt62 commented Jul 7, 2023

It is not the same. Actually landmarks cannot be used directly when rendering models. In AR/VR applications, people use blendshapes to drive character expressions, which is the feature supported by mediapipe recently.

@PINTO0309 PINTO0309 reopened this Jul 8, 2023
@PINTO0309
Copy link
Owner

PINTO0309 commented Jul 8, 2023

I expect you to contribute to the community, not just want information.
I am open to pull requests for sample code.

$ sit4onnx -if face_blendshapes.onnx -oep cpu
INFO: file: face_blendshapes.onnx
INFO: providers: ['CPUExecutionProvider']
INFO: input_name.1: input_points shape: [1, 146, 2] dtype: float32
INFO: test_loop_count: 10
INFO: total elapsed time:  5.369663238525391 ms
INFO: avg elapsed time per pred:  0.5369663238525391 ms
INFO: output_name.1: output shape: [52] dtype: float32

$ sit4onnx -if face_blendshapes.onnx -oep cuda
INFO: file: face_blendshapes.onnx
INFO: providers: ['CUDAExecutionProvider', 'CPUExecutionProvider']
INFO: input_name.1: input_points shape: [1, 146, 2] dtype: float32
INFO: test_loop_count: 10
INFO: total elapsed time:  28.800249099731445 ms
INFO: avg elapsed time per pred:  2.8800249099731445 ms
INFO: output_name.1: output shape: [52] dtype: float32

$ sit4onnx -if face_blendshapes.onnx -oep tensorrt
INFO: file: face_blendshapes.onnx
INFO: providers: ['TensorrtExecutionProvider', 'CPUExecutionProvider']
INFO: input_name.1: input_points shape: [1, 146, 2] dtype: float32
INFO: test_loop_count: 10
INFO: total elapsed time:  3.676176071166992 ms
INFO: avg elapsed time per pred:  0.3676176071166992 ms
INFO: output_name.1: output shape: [52] dtype: float32
Kazam_screencast_00035_.mp4

@PINTO0309
Copy link
Owner

image

image

@PINTO0309
Copy link
Owner

PINTO0309 commented Aug 28, 2023

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