Skip to content
use case · basics Xenova/segformer-b2-finetuned-ade-512-512 · q8 WASM Resolution & threshold ablation NVIDIA Source Code License

Basics: MiT-B2 Resolution, Threshold & ADE20K Category Breakdown

Test how input detail (`256px` → `768px`) before the 512×512 preprocessor resize affects tiny-object discovery and pixel agreement, sweep minimum area thresholds, switch overlay modes, and inspect the 6 ADE20K semantic super-categories and class-pixel histogram.

1 · Paper benchmarks: MiT-B2 vs MiT-B0 on ADE20K

Published ADE20K validation metrics from Xie et al. (arXiv:2105.15203): expanding the hierarchical transformer backbone from B0 to B2 adds +9.1 single-scale mIoU using the same all-MLP decoder design.

SegFormer ADE20K validation benchmarks (512×512 crop)
Model Params (Enc / Dec) FLOPs Single-scale mIoU Multi-scale mIoU ONNX q8

2 · Resolution, threshold & overlay ablation lab

Loading a curated scene…

Active feed edge–
Latency–
All classes–
Above threshold–
Tiny (<2% area)–
Top category–
Input resolution ablation (measured live vs 512 px reference)
Max edge Classes Tiny (<2%) Pixel agree vs 512 Latency
Run the 4-resolution ablation or click a resolution chip.
Area-threshold sweep (press a row to apply)
Min share Classes Tiny kept Retained area
Load the model to sweep area thresholds.

3 · ADE20K top-category breakdown & class-pixel histogram

ADE20K semantic super-category coverage
Category Classes Share Top labels
Load the model to summarize categories.

Class-pixel area histogram

Show the code — class-pixel area distribution histogram
Show the code — area-threshold survival sweep