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

GPU support in PyPI package on Windows #5385

Open
danielkonecny opened this issue May 7, 2024 · 6 comments
Open

GPU support in PyPI package on Windows #5385

danielkonecny opened this issue May 7, 2024 · 6 comments
Assignees
Labels
gpu MediaPipe GPU related issues os:windows MediaPipe issues on Windows platform:python MediaPipe Python issues task::all All tasks of MediaPipe type:feature Enhancement in the New Functionality or Request for a New Solution

Comments

@danielkonecny
Copy link

MediaPipe Solution (you are using)

All of them (applied to every MP Solution)

Programming language

Python

Are you willing to contribute it

No

Describe the feature and the current behaviour/state

Currently, the MediaPipe package from PyPI doesn't support GPU acceleration on Windows (via delegate=mp.tasks.BaseOptions.Delegate.GPU in BaseOptions init). The idea is to add option to delegate computation to GPU even on Windows platform without any necessity of using WSL.

Will this change the current API? How?

No response

Who will benefit with this feature?

All Windows users that would like to run any of the MediaPipe's Solutions on GPU. Issue where this feature was referrenced and would benefit from this as well: #5126.

Please specify the use cases for this feature

Higher performance of MediaPipe's Solutions on Windows - usefull on video in real time, where GPU is necessary to gain the needed fps.

Any Other info

No response

@danielkonecny danielkonecny added the type:feature Enhancement in the New Functionality or Request for a New Solution label May 7, 2024
@kuaashish kuaashish added os:windows MediaPipe issues on Windows gpu MediaPipe GPU related issues task::all All tasks of MediaPipe platform:python MediaPipe Python issues labels May 8, 2024
@kuaashish kuaashish added the stat:awaiting googler Waiting for Google Engineer's Response label May 8, 2024
@schmidt-sebastian schmidt-sebastian removed the stat:awaiting googler Waiting for Google Engineer's Response label May 8, 2024
@schmidt-sebastian
Copy link
Collaborator

We don't have a GPU layer that works on Windows at the moment. Once that happens, we will publish Python packages on Windows with GPU support.

@danielkonecny
Copy link
Author

Thank you for the reply @schmidt-sebastian. Is there any timeline/roadmap on this or is this feature not anticipated in the foreseeable future? Are there any other sources I could follow to see the progress on this (e.g. intermediate GitHub issues or PRs that need to be solved/reviewed before integrating this)?

@schmidt-sebastian
Copy link
Collaborator

schmidt-sebastian commented May 9, 2024

This is not something we are currently working on, but we can update this issue if our priorities change.

Note that you can run GPU models on Windows via our Web API.

@danielkonecny
Copy link
Author

Thank you, updating this issue would be highly appreciated.

What kind of Web API do you mean, please? I can't find it in the docs. If there's some interaction over the internet, won't the latency be even higher than a benefit of using GPU instead of CPU for computation?

@schmidt-sebastian
Copy link
Collaborator

See here for an example: https://developers.google.com/mediapipe/solutions/vision/object_detector/web_js

All of our APIs run on-device w/o server interaction.

@danielkonecny
Copy link
Author

Oh, I understand, the Javascript implementation. I am not sure whether I can incorporate that easily into the Python project I am working on but I will investigate that. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu MediaPipe GPU related issues os:windows MediaPipe issues on Windows platform:python MediaPipe Python issues task::all All tasks of MediaPipe type:feature Enhancement in the New Functionality or Request for a New Solution
Projects
None yet
Development

No branches or pull requests

3 participants