Wild · Edge Torture Stress-Test & Perturbation Curves · 98.5 MB CPU WASM fp16

Edge Torture Stress-Test: Spokes, Glass & Perturbation Curves

Background removers fail silently on 1-pixel bicycle spokes, translucent glass rims, and backlit glare. Run a real 5-pass perturbation audit (clean baseline + sensor noise + downsample blur + veiling haze + backlit gamma) through studioludens/birefnet-lite-512 and measure exact Mask IoU, Sobel Edge Preservation, and pixel-level false-positive/erosion maps.

1. Edge Torture Plate & Perturbation Sliders

Drop an image here or paste (Ctrl/⌘+V). Click any perturbation chip below to inspect its Baseline Cutout vs Perturbed Cutout vs Pixel Error Map.

Checking local cache for BiRefNet-lite 512…

Active Stress TestSensor Noise
Mask IoU–
Dice F1–
Edge Preservation–
Boundary IoU–
Alpha MAE–
Total Audit Time–
Audit NaN Count–

Perturbation Preservation Curve (Mask IoU vs Sobel Edge Preservation)

Clean Baseline Cutout

Baseline pass

Perturbed Input Cutout

Run stress test to inspect

Pixel Diff (Amber = Leak · Crimson = Erosion)

Baseline vs perturbed alpha difference
4-Perturbation Robustness Matrix (BiRefNet-lite 512 CPU WASM fp16)
Perturbation Mask IoU Dice F1 Edge Pres. Alpha MAE FG Delta Infer ms NaN
Run the 4-perturbation stress test to populate real measurements.

Show the code

Show the code — birefnet-core.mjs: computeMaskComparisonMetrics() (Mask IoU, Dice, MAE & Sobel boundary preservation)