2-Stage CPU WASM Stack (~84.87 MB Total) Stage 1: U-2-Netp (4.57 MB fp32) Stage 2: PixelSprite v2 (80.3 MB fp16) Apache-2.0 + CC-BY-NC-4.0

Photo → U-2-Netp Silhouette Mask → PixelSprite Auto-Colorized Sprite

Chain two dedicated onnxruntime-web@1.21.0 CPU WASM Web Workers in one zero-egress pipeline: Stage 1: U-2-Netp (BritishWerewolf/U-2-Netp, 4.57 MB Apache-2.0, reusing models/u-2-netp/worker.js) extracts a 320×320 foreground saliency map from any photograph and quantizes it to a centered binary pixel silhouette, then Stage 2: PixelSprite Canvas v2 (ihor-umanets/pixelsprite-canvas-v2, 80.30 MB CC-BY-NC-4.0) auto-colorizes that exact outline with zero mask violations.

1. Independent Stage Loaders (~84.87 MB Total)

Stage 1 · U-2-Netp Silhouette (4.57 MB WASM fp32)

Not initialised — reuses ../../u-2-netp/worker.js (BritishWerewolf/U-2-Netp, Apache-2.0).

Stage 2 · PixelSprite Canvas v2 (80.3 MB WASM fp16)

Not initialised — uses ../worker.js (ihor-umanets/pixelsprite-canvas-v2, CC-BY-NC-4.0).

2. Run Photo → Silhouette → PixelSprite Pipeline

Choose a rights-cleared starter photo above, drop a local PNG/JPEG/WebP image here, or paste (Ctrl/⌘+V). Slide the saliency threshold to sculpt the binary pixel silhouette before Stage 2 auto-colorization.

Initialising Stage 1 (U-2-Netp) and Stage 2 (PixelSprite Canvas v2) loaders…

Stage 1 U-2-Netp–
Stage 2 PixelSprite–
Mask Coverage–
Edge / Interior–
Outline Violations–
OKLab Colors–
Combined NaNs–

Stage 1 · Source Photo & U-2-Netp Saliency

Bridge · Binary Pixel Silhouette Mask

Run Stage 1 to extract a centered binary pixel silhouette.

Stage 2 · PixelSprite Auto-Colorized Sprite

1×
2×
4×
Awaiting Stage 2 PixelSprite auto-colorization.

Show the code

Show the code — pixelsprite-core.mjs: extractSilhouetteFromSaliency() (320×320 U-2-Netp saliency → binary pixel silhouette)