Multi-model · 2 independent Web Workers · SegFormer-B0 Clothes 4.4 MB q8 (MIT) → Marqo-FashionSigLIP 165.0 / 207.5 MB (Apache-2.0)

SegFormer-B0 Clothes → Marqo-FashionSigLIP: does stripping the background lift the tag?

Stage 1 — Xenova/segformer_b0_clothes (4.4 MB q8 CPU WASM on the shared Transformers.js 3.7.5, reusing the built models/segformer-b0-clothes/worker.js) labels every pixel and isolates the garment mask. Stage 2 — Marqo/marqo-fashionSigLIP scores the raw whole image and the background-stripped garment against the same tagbank, so you can measure exactly how much the clutter was costing the target apparel margin.

Loading starter apparel scene…

Raw whole image vs Stage-1 garment-isolated input

Raw input + Stage-1 kept mask

Background stripped (neutral gray fill)

Target-apparel margin

Target tag–
Raw margin–
Isolated margin–
Margin lift–
Target cosine Δ–
NaN count–

Raw whole-image scores

Run the pipeline.

Garment-isolated scores

Run the pipeline.

Does it always help? Lift across every starter scene

Background stripping is not free: a tight class mask can also throw away context the tag depends on. The benchmark runs the same 2-stage pipeline on all five scenes with the current context and isolation settings and reports the measured margin lift for each — wins and losses alike.

Press “Benchmark all 5 scenes” once both stages are ready.

Pipeline stage models

Stage 1 · SegFormer-B0 Clothes

Xenova/segformer_b0_clothes · image-segmentation · 4.4 MB q8 · CPU WASM · MIT

Waiting to initialise Stage 1…

Stage 2 · Marqo-FashionSigLIP

Marqo/marqo-fashionSigLIP · zero-shot-image-classification · Apache-2.0

Waiting to initialise Stage 2…

Show the code — Component-filtered garment mask from the Stage-1 class map (garmentComponentMask)
Show the code — Raw vs isolated target-apparel margin lift (computeMarginLift)