Models About & Code

Standalone App & PWA

Install Wardrobe & Outfit Stylist from its dedicated origin as an offline garment recoloring & fashion-vibe studio with direct OS image/* file_handlers support and zero camera, microphone, or location permissions.

Open outfit.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so outfit.webai.show caches its own 4.4 MB SegFormer-B0 Clothes weights and optional Marqo-FashionSigLIP weights (~165 MB WebGPU / ~207.5 MB CPU WASM). Staying on webai.show keeps cached weights shared across the showcase origin.

Interactive Outfit Garment Canvas

Atelier Blazer headless tailor-form outfit awaiting SegFormer-B0 Clothes segmentation.

Click any garment after segmentation to dye in OKLCH. Skin · Face · Hair · BG Locked

Loading Atelier Blazer headless tailor form…

Export Lookbook & Spec

Zero server upload

Detected Garment Zones

Awaiting SegFormer-B0

1-Click Tonal Capsule Recipes

Coordinates every garment

FashionSigLIP Style-Tag Radar

Probing GPU…

    Measures 6 fashion style embeddings via Marqo-FashionSigLIP (local Transformers.js 4.3.2 worker) before vs. after garment recoloring.

    OKLCH Dye & Finish Stylist

    262°
    0.14
    +0.00
    Natural +0.0

    Run Stage 1 SegFormer-B0 Clothes (~4.4 MB) to unlock per-garment OKLCH recoloring.

    On-Device Models & Pipeline Diagnostics

    Both neural stages run 100% locally inside dedicated Web Workers with zero outfit photos ever leaving your device. Stage 1 caches instantaneously (~4.4 MB); Stage 2 adds optional real-time fashion style-vibe radar scoring on WebGPU or CPU WebAssembly.

    Stage 1 · SegFormer-B0 Clothes (4.4 MB q8 · MIT · CPU WASM)

    Xenova/segformer_b0_clothes (upstream mattmdjaga/segformer_b0_clothes, MIT) · onnx/model_quantized.onnx (4.38 MB) · Shared lib/webai.js Transformers.js 3.7.5

    Stage 2 · Marqo-FashionSigLIP Style Radar (Apache-2.0 · ~165 MB WebGPU q4f16 / ~207.5 MB CPU WASM int8)

    Marqo/marqo-fashionSigLIP (Apache-2.0, ViT-B-16 SigLIP, 768-dim) · Scoped local Transformers.js 4.3.2 worker override required because 3.7.5 lacks ConvInteger(10) on WASM and produces degenerate WebGPU q4f16 embeddings; 4.3.2 runs cleanly on both WebGPU and CPU WASM.

    Stage 1 · SegFormer-B0 Not run
    Detected / Locked Pending mask
    OKLCH Recolor Pass Idle
    Stage 2 · FashionSigLIP Optional · Off
    Tensor Integrity 0 NaN · 18 classes

    How Wardrobe & Outfit Stylist Works

    Semantic clothing parsing isolates individual garments down to pixel boundaries so perceptually uniform OKLCH recoloring shifts hue, chroma, and specular fabric finish without ever tinting skin, hair, face, or backdrop — while Marqo-FashionSigLIP quantifies how every color tweak changes the outfit's style signature.

    1. SegFormer-B0 Clothes (MIT · 4.4 MB)

    Xenova/segformer_b0_clothes runs on shared Transformers.js 3.7.5 CPU WASM inside segformer-worker.js to classify 18 ATR clothing & human-parsing classes at 512×512. Editable apparel masks unlock per-garment dyeing while Background, Face, Hair, and limb classes stay strictly bit-locked.

    2. Luminance-Anchored OKLCH Dye & Sheen

    Exact Björn Ottosson sRGB ↔ Linear RGB ↔ Oklab ↔ OKLCH conversions anchor each garment's folds, creases, and micro-weave contrast around its source lightness, then apply matte wool compression or satin specular curves with gamut-envelope chroma tapering so fabrics never clip into flat neon tint.

    3. Marqo-FashionSigLIP Radar (Apache-2.0)

    Marqo/marqo-fashionSigLIP runs in an isolated Transformers.js 4.3.2 worker (fashionsiglip-worker.js), caching 768-dim text embeddings for 6 style prompts once and re-running SiglipVisionModel on Before vs. After outfit frames (~25 ms on WebGPU q4f16 or ~0.7 s on CPU WASM int8).

    Show the code — srgbToOklch() exact Björn Ottosson perceptual color transform
    Show the code — applyGarmentStylesToRgba() luminance-preserving OKLCH dye, matte/satin sheen & skin/background lock
    Show the code — runSegmentation() SegFormer-B0 Clothes 18-class worker & off-thread mask bitmap
    Show the code — ensureLoaded() Marqo-FashionSigLIP dual WebGPU q4f16 / CPU WASM int8 loader (Transformers.js 4.3.2)
    Show the code — StageWorkerClient FIFO queue & lifecycle-safe worker teardown

    Editorial Lookbook Card (1200×760 PNG)

    Before vs. After styled outfit plate, OKLCH garment swatches, and live Marqo-FashionSigLIP style shift spec.