Skip to content
image-segmentation · multi-model 2 Web Workers · 18.91 MB Total 14.49 MB (B1) + 4.42 MB (B0) WASM q8 NVIDIA Source Code License

SegFormer-B1 vs SegFormer-B0: Per-Class Pixel IoU & Boundary Disagreement

Stage 1 runs Xenova/segformer-b1-finetuned-ade-512-512 (MiT-B1 [2,2,2,2], [64,128,320,512], 13.7M params, 15.9 GFLOPs, 14.49 MB q8 WASM). Stage 2 reuses sibling ../segformer-semantic/worker.js (Xenova/segformer-b0-finetuned-ade-512-512, MiT-B0 [2,2,2,2], [32,64,160,256], 3.8M params, 8.4 GFLOPs, 4.42 MB q8 WASM). Both segment the exact same bounded frame to measure pixel agreement, boundary flips, and per-class pixel IoU.

1 · Workflow models (18.91 MB total)

Stage 1 · SegFormer-B1 (ADE20K · 14.49 MB)

Uses ../worker.js — MiT-B1 [64,128,320,512], 256-dim decoder, WASM q8.

Stage 2 · SegFormer-B0 (ADE20K · 4.42 MB)

Reuses ../../segformer-semantic/worker.js — MiT-B0 [32,64,160,256], 256-dim decoder, WASM q8.

2 · Side-by-side masks & per-class pixel IoU diff

Loading a curated scene…

Stage 1 · SegFormer-B1 (14.49 MB)

Awaiting Stage 1 inference…

Stage 2 · SegFormer-B0 (4.42 MB)

Awaiting Stage 2 inference…

Disagreement & boundary diff (crimson = flip)

Run both stages to compute pixel agreement.

Pixel agreement–
Disagreement rate–
Boundary disagree–
Macro mIoU–
Classes (B1 vs B0)–
B1-only / B0-only–
Latency (B1 vs B0)–
Per-class pixel IoU & coverage diff (SegFormer-B1 vs SegFormer-B0)
ADE20K Class Status Pixel IoU B1 share B0 share Area Δ (B1−B0)
Run both stages to compute per-class pixel IoU.
Head-to-head comparison history across scenes
Scene Classes (B1 / B0) Pixel agree Boundary flip Macro mIoU Latency
Run both stages to record head-to-head runs.

See inside the code

Show the code — per-class pixel IoU & boundary disagreement engine
Show the code — Stage 2 sibling worker adapter (../segformer-semantic/worker.js)

References