image-segmentation · wild 6-Perturbation Robustness Sweep · Failure-Mode Lab WASM q8 · 0.22 MB License: Apache-2.0

Wild: Segmentation Stress & Failure-Mode Lab

Run a live 6-perturbation robustness sweep (low-light, horizontal mirror, heavy blur, high contrast, partial occlusion, and center crop) measuring real mask IoU against the clean baseline, and probe honest domain failures on non-person scenes like obj-cat.jpg and obj-room.jpg.

1 · Live 6-perturbation robustness sweep (IoU vs clean baseline)

Initialising model loader…

Perturbation: clean baseline

Baseline fg %–
Mean IoU (6 probes)–
Worst perturbation–
Mirror flip IoU–
Total sweep ms–
NaN / invalid0
Honest Failure-Mode Note

MediaPipe Selfie Segmentation is trained to separate human silhouettes from backgrounds at 256×256. Click Probe Portrait vs Cat vs Room or select Domestic Cat / Empty Room above to see where salient pets trigger partial false-positive mattes while empty rooms remain near 0–6%.

6-perturbation robustness table (IoU & Dice vs clean baseline)
Perturbation Transform Foreground % IoU vs baseline Dice Mean |Δα| Latency
Run the 6-perturbation sweep above to populate IoU scores.

2 · Portrait vs non-person domain probe (Portrait vs Cat vs Room)

Click Probe Portrait vs Cat vs Room above to run all three side by side.

See inside the code

Show the code — selfie-core.mjs: flipHorizontalAlpha() (un-flip mirror matte for true IoU)
Show the code — selfie-core.mjs: extractCenterOverlapPair() (70% crop aligned overlap)
Show the code — selfie.js: renderPerturbedInput() (photometric, mirror, occlusion, crop transforms)

References