Skip to content
use case · basics Xenova/segformer-b1-finetuned-ade-512-512 · q8 WASM B0→B5 scaling & resolution ablation NVIDIA Source Code License

Basics: MiT-B1 Scaling, Resolution & Confidence Ablation

Inspect why SegFormer-B1 hits the browser efficiency frontier (+4.8 mIoU over B0 at 15.9 GFLOPs and 14.49 MB), run live multi-resolution ablation (256 → 768 px), quantize predictions across decoder/encoder stride grids (512 / 256 / 128 / 64), and explore softmax confidence gating across ADE20K groups.

1 · Paper scaling ladder: SegFormer B0 → B5 on ADE20K

Published ADE20K validation metrics from Xie et al. (arXiv:2105.15203) paired with measured Hugging Face Xenova/segformer-* onnx/model_quantized.onnx sizes. B1 doubles encoder channel widths while keeping B0's 2-block depths and 256-dim decode head.

SegFormer B0–B5 ADE20K validation benchmarks & browser q8 ONNX footprint
Variant Depths / Dec Params (Enc / Dec) GFLOPs SS mIoU MS mIoU q8 ONNX

2 · Live resolution, overlay mode & confidence ablation lab

Loading a curated scene…

Active feed edge–
Latency–
Classes found–
Mean softmax conf–
Uncertain (<thr)–
Top group–
Input resolution ablation (measured live vs 512 px reference)
Max edge Classes Mean conf Agree vs 512 Latency
Run the 4-resolution ablation or click a resolution chip.
Spatial stride-grid ablation (512 → 128 Stage-1 → 64 Stage-2)
Grid Classes Small (<1%) kept Pixel agree
Load the model to quantify stride-grid loss.

3 · ADE20K group breakdown & softmax confidence histogram

ADE20K semantic group coverage
Group Classes Share Top labels
Load the model to summarize semantic groups.

Softmax confidence distribution

Show the code — spatial stride-grid quantization ablation
Show the code — per-pixel softmax confidence histogram