use case · multi-model · Apache-2.0 ORMBG (44.3 MB WASM q8) vs Apache-2.0 MODNet (~7 MB WASM q8 / ~26 MB WebGPU fp32)

Apache-2.0 Matting Arena: ORMBG vs MODNet

Compare two commercial-safe Apache-2.0 browser matting architectures side by side on the exact same photograph: Stage 1 — ORMBG (schirrmacher/ormbg, 1024×1024 IS-Net general salient object matting, 44.3 MB WASM q8) versus Stage 2 — MODNet (Xenova/modnet, dynamic-resolution trimap-free portrait matting, ~7 MB WASM q8 / ~26 MB WebGPU fp32, reusing the showcase's existing MODNet worker via a FIFO-serialized client). See both models compete on portraits — and watch general-purpose ORMBG isolate products, pets, and food where portrait-specialized MODNet drops non-human subjects.

1. Initialise Both Apache-2.0 Matting Models

Stage 1 · ORMBG (IS-Net 1024² · 44.3 MB WASM q8)

Stage 2 · MODNet (~7 MB WASM q8 / ~26 MB WebGPU fp32)

2. Pick a Portrait or Product & Run Head-to-Head

Initialise Stage 1 (ORMBG) and Stage 2 (MODNet) above to run snapshot-aligned matting comparison.

Consensus FG ORMBG-only FG MODNet-only FG

Active image: Smiling Portrait (1280×850)

Comparison View & Pixel Agreement

50%
ORMBG Latency–
MODNet Latency–
Binary FG IoU–
Alpha MAD %–
ORMBG-Only Area–
MODNet-Only Area–
Snapshot-aligned matte metrics: ORMBG (1024×1024 IS-Net) vs MODNet (Portrait Matting)
Metric Stage 1 · ORMBG (Apache-2.0) Stage 2 · MODNet (Apache-2.0) Delta / Agreement
Run both models above on the active image to compare alpha mattes.