#5862·mediapipe

Running image segmenter on codepen gives different results than running image segmenter on mediapipe studio on ios chrome

Author: kaneishereCreated Feb 18, 2025Updated Sep 10, 2026
Labelstype:supportplatform:iosstat:awaiting responsetask:image segmentation

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

ios 18.3.1

Mobile device if the issue happens on mobile device

iphone 14 pro max

Browser and version if the issue happens on browser

133.0.6943.84

Programming Language and version

javascript

MediaPipe version

0.10.21

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

Codepen example modified to use multiclass selfie segmenter and paint 'others' (line 158) region does not paint 'others' region when run on my ios chrome. However, the multiclass segmenter on mediapipe studio works just fine, showing me the expected 'others' region.

Describe the expected behaviour

Expect codepen example (https://codepen.io/Kane-Wu/pen/bNGNrPw) modified to use multiclass selfie segmenter (modified to show 'Others' region only) to show the same results as mediapipe studio example

Standalone code/steps you may have used to try to get what you need

https://codepen.io/Kane-Wu/pen/bNGNrPw

Other info / Complete Logs

bash

Source: google-ai-edge/mediapipe