Multi-model · 11.06 MB Combined CPU WASM · 2 Independent Web Workers · Apache-2.0 + GPL-3.0

U-2-Netp Foreground Mask → 4× APISR Super-Resolution Cutout Studio

Stage 1 — BritishWerewolf/U-2-Netp (4.57 MB fp32 CPU WASM via onnxruntime-web 1.21.0, Apache-2.0, reusing models/u-2-netp/worker.js) extracts a 320×320 foreground saliency matte. Stage 2 — Xenova/4x_APISR_GRL_GAN_generator-onnx (6.49 MB fp32 CPU WASM via shared Transformers.js 3.7.5, GPL-3.0) upscales the image 4× and composites a razor-sharp transparent alpha cutout or die-cut sticker in just 11.06 MB total.

Loading starter foreground subject…

Stage 1 Saliency Matte · Stage 2 4× APISR · Final Alpha Cutout

Stage 1 · U-2-Netp Matte

Stage 2 · 4× APISR RGB

Composite · 4× Alpha Cutout

Run both stages to combine Stage 1 foreground matting with Stage 2 4× APISR super-resolution, then adjust threshold or sticker outline at 0 ms.

Independent Stage Workers (11.06 MB Combined CPU WASM)

Stage 1 · U-2-Netp Foreground Saliency

BritishWerewolf/U-2-Netp · image-segmentation · 4.57 MB fp32 · Apache-2.0 · models/u-2-netp/worker.js

Waiting to initialise Stage 1…

Stage 2 · 4× APISR GRL-GAN Super-Resolution

Xenova/4x_APISR_GRL_GAN_generator-onnx · image-to-image · 6.49 MB fp32 · GPL-3.0 · ../worker.js

Waiting to initialise Stage 2…

Show the code — buildAlphaCutoutFromMask() compositing 4× APISR RGB with Stage 1 U-2-Netp saliency alpha & die-cut sticker outline