Multi-model · 28.85 MB Combined CPU WASM · 2 Independent Web Workers · Apache-2.0 + MIT

Salient Cutout → Zero-Shot Foreground Classifier

Stage 1 — BritishWerewolf/U-2-Netp (4.57 MB fp32 WASM, Apache-2.0) segments and tight-crops the salient foreground onto a clean white studio canvas. Stage 2 — wkcn/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M (24.28 MB q8 WASM, MIT, reusing models/tinyclip-vit-8m-16-text-3m-yfcc15m/worker.js) classifies both the full scene and the isolated foreground cutout to quantify the real background-removal confidence shift.

Loading starter photograph…

Stage 1 input · Full scene

Stage 1 output · Isolated cutout

Background-removal confidence shift (Full Scene vs Isolated Cutout)

Run both stages to compare full-scene vs isolated-cutout zero-shot probabilities and cosine similarities.

Pipeline stage models (28.85 MB combined WASM)

Stage 1 · U-2-Netp Salient Cutout

BritishWerewolf/U-2-Netp · image-segmentation · 4.57 MB fp32 · Apache-2.0

Waiting to initialise Stage 1…

Stage 2 · TinyCLIP ViT-8M/16

onnx-community/TinyCLIP-ViT-8M-16-Text-3M-YFCC15M-ONNX · zero-shot-image-classification · 24.28 MB q8 · MIT

Waiting to initialise Stage 2…

Show the code — TinyClipStageClient reusing models/tinyclip-vit-8m-16-text-3m-yfcc15m/worker.js