-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
mediapipe not GPU accelerated #5742
Comments
Hi @jpitalopez, To enable GPU acceleration, please refer to this example notebook and update the code as shown below to delegate processing to the GPU:
Kindly let us know if you can now run the sample on the GPU successfully. Thank you!! |
2024-11-19 13:03:10.441315: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable The output is this one above. Is good that now it creates TensorFlow Lite delegate for GPU. But it seems that the device is using is part of the processor instead of the graphics card. I have Nvidia RTX 3050. |
Hi @jpitalopez, Regrettably, We currently do not offer official support for the Nvidia Jetson Development Kit, encompassing both CPU and GPU functionalities. The sole endorsed edge device is the Raspberry Pi 64-bit, as outlined in our documentation. For now, you may leverage the community-developed plugin accessible at https://github.com/anion0278/mediapipe-jetson, which includes GPU support as well and reasonably up-to-date. It's important to note that the implementation is based on version 0.8.9 and based out legacy solutions. Thank you!! |
Thanks for the info! I believe there is a misunderstanding. I don’t need Jetson Nano support; I need Nvidia CUDA support for the RTX 3050. |
Hi @jpitalopez, Apologies for the oversight. Could you please share a screenshot showing that the graphics card is not being utilized? Thank you!! |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Linnux Ubuntu
MediaPipe Tasks SDK version
0.10.15
Task name (e.g. Image classification, Gesture recognition etc.)
Face detection
Programming Language and version (e.g. C++, Python, Java)
Python
Describe the actual behavior
Executes on CPU
Describe the expected behaviour
Executes on GPU
Standalone code/steps you may have used to try to get what you need
I just installed mediapipe with: $ pip install mediapie. I already installed cuda, pytroch and tensorflow.
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: