Interactive 18-class apparel mask & OKLCH tint canvas
Click any pixel on the image after inference to inspect its 18-class label, softmax confidence, and target it for OKLCH garment tinting.
Loading starter wardrobe scene…
Clickable 18-class detected labels
Initialise SegFormer-B0 Clothes above to populate clickable garment chips.
Per-class pixel coverage breakdown (0 NaN)
Run inference to inspect pixel coverage and mean softmax confidence per class.
See inside SegFormer-B0 Clothes
Raw 18-class argmax mask (model output only)
Verified ONNX model contract & architecture
- HF Repo
- Xenova/segformer_b0_clothes
- Upstream
- mattmdjaga/segformer_b0_clothes (ATR 18 classes · MIT)
- Task
- image-segmentation (SegformerForSemanticSegmentation)
- Backbone
- MiT-B0 depths [2,2,2,2], hidden [32,64,160,256], MLP 256
- Quantization
- q8 · onnx/model_quantized.onnx (4,384,537 B / 4.38 MB · 4.4 MB total)
- Runtime
- Shared lib/webai.js · Transformers.js 3.7.5 · CPU WASM Worker
Show the code — Luminance-preserving OKLCH garment tint with locked body/background (applyOklchGarmentTint)
Show the code — Off-main-thread SegFormer-B0 q8 WASM inference & bilinear logit upsampling (runSegmentation)
Explore the SegFormer-B0 Clothes use-case ladder
Basics · Threshold & Resolution Ablation
Compare 18-class vs 5-group Super-Category (Top / Bottom / Footwear / Accessories / Background) masks across live confidence thresholds and 256 / 384 / 512 px scaling.
Practical · E-Commerce SKU Wardrobe Queue
Batch-parse multi-item apparel catalogs offline with Pause, Resume, and Cancel controls to emit SKU garment-region tags and OWASP-safe CSV/JSON manifests.
Wild · 5-Perturbation Robustness Suite
Stress-test garment IoU retention under Hue/Light shift, Patterned Texture Noise, Tight Crop, Mid-Torso Occlusion, and 96 px Low-Res degradation.
Multi-model · SegFormer-B0 → FashionCLIP 2.0
Chain Stage 1 SegFormer-B0 (4.4 MB) with Stage 2 FashionCLIP 2.0 to compare zero-shot aesthetic scores on full outfits vs Stage-1 isolated garment crops.