mediapipe
mediapipe copied to clipboard
How to turn off hand tracking in holistic?
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,
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
@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].pbtxtWhere [X] is
cpuORgpu.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.
Hello @mhays-google,
Could you please look into this. Thank you
If I comment out these thing related to hand_landmarks, Graph.Initialize(config) would be failed
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
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.
This issue was closed due to lack of activity after being marked stale for past 7 days.