mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

How to turn off hand tracking in holistic?

Open justinduynguyen opened this issue 2 years ago • 4 comments

I want to turn off hand tracking feature because it causes performance problems. How to do that or whether custom solutions to do ?

Thank you in advance.

justinduynguyen avatar Aug 22 '23 09:08 justinduynguyen

@justinduynguyen,

You can comment out everything related to hand_landmarks from below files, By commenting out the files you might be able to turn off the hand tracking part, But We do not recommend this.

/graphs/holistic_tracking/holistic_tracking_[X].pbtxt
/graphs/holistic_tracking/holistic_tracking_to_render_data.pbtxt
/modules/holistic_landmark/holistic_landmark_[X].pbtxt

Where [X] is cpu OR gpu.

Because, binarypb contains the graph that tells the solution what to do. If that binarypb were modified (it's in proto3 format) and the nodes that compute these outputs were removed, the overhead would no longer exist. but we don't support this at this time.

We have been experimenting with dynamically disabling sections of the graph based on options, And this might be a reasonable optimization. We can bring this up to the team, but we can not offer you a solution at this time.

Thank you

kuaashish avatar Aug 22 '23 11:08 kuaashish

@justinduynguyen,

You can comment out everything related to hand_landmarks from below files, By commenting out the files you might be able to turn off the hand tracking part, But We do not recommend this.

/graphs/holistic_tracking/holistic_tracking_[X].pbtxt
/graphs/holistic_tracking/holistic_tracking_to_render_data.pbtxt
/modules/holistic_landmark/holistic_landmark_[X].pbtxt

Where [X] is cpu OR gpu.

Because, binarypb contains the graph that tells the solution what to do. If that binarypb were modified (it's in proto3 format) and the nodes that compute these outputs were removed, the overhead would no longer exist. but we don't support this at this time.

We have been experimenting with dynamically disabling sections of the graph based on options, And this might be a reasonable optimization. We can bring this up to the team, but we can not offer you a solution at this time.

Thank you

How to do that on web solution? Thank you.

justinduynguyen avatar Aug 22 '23 13:08 justinduynguyen

Hello @mhays-google,

Could you please look into this. Thank you

kuaashish avatar Aug 22 '23 15:08 kuaashish

If I comment out these thing related to hand_landmarks, Graph.Initialize(config) would be failed

Tendaliu avatar Sep 22 '24 17:09 Tendaliu

Hi @justinduynguyen,

Thank you for reporting this issue. This issue is related to the legacy feature that is no longer actively supported and support has been completely ended.

We recommend migrating to the new MediaPipe API’s for continued support and access to the most recent documentation to new MediaPipe API’s here. Please consult the release notes for information on the latest updates.

If you encounter any issues with the new MediaPipe API’s, please open a new GitHub issue with detailed debugging information to facilitate our investigation.

Please follow the release notes to stay up to date with the latest developments which are happening in the MediaPipe space. MediaPipe

kalyan2789g avatar Aug 29 '25 09:08 kalyan2789g

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar Sep 06 '25 02:09 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar Sep 14 '25 02:09 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Sep 14 '25 02:09 google-ml-butler[bot]