-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Why GPU isn't used? #5398
Comments
Sorry wanna add some picture and realize the template didn't enable me to do that. So I add more info following the description above here. this is the usage However in the log for running Also, in the log, it shows mesa as openGL vendor. Not nvidia. Based on this issue, it seems I have to get it to Nvidia to make it work? but Idk how. |
Within the same docker container, I also tried using the pip installed mediapipe and leverage task. I followed the tutorial code listed here and made it one script. I modified It can run but again GPU usage is 0. Log shows it's already delegated to GPU |
ok, i figured by myself. it's related to the x11 server I passed into my docker. I used a VNC server and passed a virtual VNC x11 session in and by default it would only use Mesa. After I remove this x11 pass in or I directly run this on host system, my openGL changed to nvidia. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Ubuntu22.04
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
python
MediaPipe version
No response
Bazel version
No response
Solution
hand tracking gpu
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Want to leverage Nvidia GPU but couldn't
Describe the expected behaviour
Should leverage Nvidia GPU
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: