Closed annysmolyan closed 1 year ago
This is a related issue to https://github.com/googlesamples/mediapipe/issues/159. MPMask elements generated with GPU
delegate are not yet supported on all platforms. We're working on patches for these issues now, but in the meantime, try using a CPU
delegate-- that will be slower but should hopefully work in the meantime.
For me it doesn't work in Mozilla even with CPU
@annysmolyan,
We have observed that image segmentation is functioning as expected in the Android Chrome Browser. Nevertheless, in the Mozilla browser, we cannot guarantee the functionality of the demo, as our testing has primarily focused on the browsers specified in the documentation.
We kindly request you to initiate a new feature request to include support for the Mozilla Browser, highlighting the potential benefits that the community could derive from such an enhancement. Furthermore, we intend to execute the demo on supported browsers and kindly request that you notify us if similar issues are encountered.
Moreover, we would appreciate your confirmation regarding the closure of this issue and the necessary status update, should it no longer be a concern from your end.
Is there any way to detect GPU support for the current browser to set the correct options for delegate CPU/GPU?
Something like this would be very helpfull:
ImageSegmenter.getSupportedProcessingUnits() // returns a list like ['CPU', 'GPU']
Thanks!
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.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Linux, Ubuntu,
Mobile device if the issue happens on mobile device
Pixel 6
Browser and version if the issue happens on browser
Mozilla (v 113.0.1), Google Chrome
Programming Language and version
JS
MediaPipe version
No response
Bazel version
No response
Solution
ImageSegmenter
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
Describe the expected behaviour
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs