mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Hair segmentation in JS - can MediaPipe Visualizer be stripped to run-time only?

Open pgaston opened this issue 3 years ago • 1 comments

I'd like to use Hair Segmentation in a browser app. (btw, it's fabulous that face mesh and selfie segmentation are already there.)

Seeing as hair segmentation works great using MediaPipe Visualizer in a browser - is it possible to run that graph (or one slightly modified for fine-tuning output) on the web - baked into my cordova app (cross-platform framework using vanilla HTML w/ js)?

From documentation a year+ ago, it seems like things are coming 'soon'. Just prodding. Thanks!

Thanks! p

(btw, a poor substitute may be combining face mesh w/ selfie segmentation - that may be good enough for academic analysis purposes.)

pgaston avatar Jan 10 '22 19:01 pgaston

Is there some way to deploy a hair segmentation model on the web app? Any help is much appreciated.

narendraadloid avatar Jul 25 '22 08:07 narendraadloid

Hello @pgaston We are building a set of new, improved MediaPipe Solutions to help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. And we request the MediaPipe developer community help us uncover the issues and make the APIs more resilient.

Would you please check in the new Image Segmentation solution ? You only need to replace the path to the TfLite model while calling the createFromOptions()

ImageSegmenter.createFromOptions(vision, {
    baseOptions: {
      modelAssetPath: 'your/path/to/hair_segmentation_model.tflite'
    },
    runningMode: runningMode
  });

ayushgdev avatar May 03 '23 09:05 ayushgdev

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.

github-actions[bot] avatar May 11 '23 01:05 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar May 19 '23 01:05 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar May 19 '23 01:05 google-ml-butler[bot]