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

WebGL support #49

Open
zer0012 opened this issue Feb 4, 2021 · 9 comments
Open

WebGL support #49

zer0012 opened this issue Feb 4, 2021 · 9 comments
Assignees
Labels
platform:webgl Issue that occurs when the target platform is WebGL stat:pending Pending type:feature New feature or request

Comments

@zer0012
Copy link

zer0012 commented Feb 4, 2021

hello!I want to ask WebGL support possible? Will it be possible to support WebGL in the future?

@homuler
Copy link
Owner

homuler commented Feb 4, 2021

I haven't thought seriously about it yet, so I don't know (at least, JS API exists).
If requested, I might try to support it in the future.

@zer0012
Copy link
Author

zer0012 commented Feb 4, 2021

Okay thank you

@homuler homuler added the type:feature New feature or request label Feb 6, 2021
@JoeProgram
Copy link

Hello! I'd also be interested in WebGL support. If I wanted to start looking at it independently, do you have a recommendation of where to start?

@homuler
Copy link
Owner

homuler commented Mar 19, 2021

I guess some code can't be compiled, so first you would need to fix such compile-time errors.

cf. https://github.com/homuler/MediaPipeUnityPlugin/blob/master/C/mediapipe_api/import_model.bzl#L56

@GreyPoupwn
Copy link

+1 for WebGL support!

@homuler For WebGL, the Unity C# functions which return type Task will need to be refactored, as System.Threading is not supported in WebGL. Something like an async void which takes a System.Action as a completion callback is how I have gotten around this in the past.

If you're willing to do the plugin work, I'm sure contributors here (including me) would help on the Unity C# side.

I sent you a message regarding WebGL plans in the MediaPipe slack channel, as well.

@Keerato
Copy link

Keerato commented Jun 16, 2021

+1 for WebGL support!

Can't wait for it.

@juhanikarlsson
Copy link

+1 : )

@homuler
Copy link
Owner

homuler commented Dec 24, 2021

I've been looking into this for a few days and have confirmed that FaceMesh works on CPU (but it's just hopelessly slow).
I'm trying to modify it to use WebGL for inference, but it probably won't be fast enough to be useful (cf. https://github.com/prantoran/mediapipe).
The official JS version may be performing well enough, but it appears to be using internal code that we cannot access.

@homuler homuler added platform:webgl Issue that occurs when the target platform is WebGL stat:pending Pending labels Jan 10, 2022
@homuler homuler mentioned this issue Jun 12, 2023
@bryandickson
Copy link

any recent progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:webgl Issue that occurs when the target platform is WebGL stat:pending Pending type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants