Basics · Softmax Thresholding & Spatial-Resolution Scaling · Transformers.js 3.7.5 WASM · 4.4 MB

18-Class vs Super-Category & Resolution Ablation

Explore how Xenova/segformer_b0_clothes behaves when rolling 18 ATR classes into 5 Super-Categories (Top, Bottom, Footwear, Accessories, Background), filtering low-confidence boundary pixels via real softmax probabilities, and scaling MiT-B0 spatial input resolution across 256×256, 384×384, and 512×512.

Side-by-side 18-class vs Super-Category mask view

18-Class ATR Mask (active threshold)

5-Group Super-Category Rollup

Loading starter wardrobe scene…

Spatial-resolution scaling ablation (256 / 384 / 512 px)

SegFormer-B0 Clothes latency, logit grid, confidence calibration, and IoU vs 512 px baseline
Input Size Logits Shape Latency Mean Conf Garment % IoU vs 512px

How confidence thresholding & upsampling work

Show the code — 18-class & 5-group Super-Category threshold aggregation (summarizeClassCoverage)
Show the code — Bilinear logit upsampling & per-pixel softmax probability extraction (upsampleLogitsAndSoftmax)