Background removal
Remove an image background in one click
A matting model predicts a per-pixel alpha channel — the subject stays, the background turns transparent.
Input

Output
IMG.LY Background RemovalModel info
Browser background-removal package using ONNX Runtime Web. The upstream example documents isnet_quint8 and isnet_fp16 configurations. Exact downloaded weights, sizes and device performance still need verification.
Computed for real in the browser (canvas pixel ops / STFT spectral processing / vector retrieval).
Switching models only changes weight size, device and backend metadata; samples are shared across every model in the subcategory.
Marked entries really download and load weights on switch (slow the first time, cached afterwards). Unmarked ones ship no browser weights: instant output, nothing downloaded.
Catalogue entries for this task →
Read next
All posts →From a YOLO box to a soft alpha
The smallest detector in our vision category is 2.5 MiB; the largest matting model is 93.9 MiB. The extra weight shows up along the edge, in two or three pixels. All three demos use the same sample images.
What Transformers.js, ONNX Runtime Web and WebGPU each do in a browser
The demos here run on several stacks at once: Transformers.js pipelines, raw onnxruntime-web sessions, MediaPipe Tasks and a few libraries that compile a whole task to WASM. One page can use three of them together. Here is which layer does what, and how we pick a stack for a new task.