Skip to content
WebAI

vision / background-removal

Background removal

Separates the subject from the rest of the frame as a full-resolution alpha mask. Quality is judged at hair and edge level, where small matting errors are most visible; the HD mode runs a dedicated matting network per image.

2 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

IMG.LY Background Removal

The @imgly/background-removal library with its two ISNet builds: isnet_quint8 for speed and isnet_fp16 for quality. Weights are fetched from IMG.LY’s CDN at run time, so the download is not a file in the npm package.

Tasks: Background removal

Tool / libraryONNX Runtime Web

isnet_quint8: Not verified

isnet_fp16: Not verified

Code license: Custom

Weight license: Not verified

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Not verified
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Foreground / Background
Package
@imgly/background-removal
Runtime version
@imgly/background-removal@1.7.0
Execution backend
WASM, WebGPU
Code license
Custom
Weight license
Not verified

Deployment variants

isnet_quint8
Download size: Not verified
Peak runtime memory: Not measured
Quantization / precision: quint8
Weight revision: Not verified
Demo ↗
isnet_fp16
Download size: Not verified
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: Not verified
Demo ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

BiRefNet-lite 512

BiRefNet-lite at 512x512, the HD background-removal path: a dichotomous segmentation model that keeps hair and thin edges the ISNet models lose. Loaded as fp16 on WebGPU, so it falls back to nothing on devices without WebGPU fp16 support.

Tasks: Background removal

ModelTransformers.js

fp16: 93.9 MiB

fp32: 183.0 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
studioludens/birefnet-lite-512
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
512x512 input, Requires WebGPU fp16
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
webgpu
Code license
Apache-2.0
Weight license
MIT

Deployment variants

fp16
Download size: 93.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 4a3c40c36c94093cc1e724d9ea428b8fa4b57dc7
Weight artifact ↗
fp32
Download size: 183.0 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 4a3c40c36c94093cc1e724d9ea428b8fa4b57dc7
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Background removal

Background removal under Vision holds 2 catalogue entries: 1 models, 1 tools or libraries.

2 of them carry browser evidence, all from upstream browser examples.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to ONNX Runtime Web and Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
2 in total
Main runtime
ONNX Runtime Web and Transformers.js
Smallest known weights
93.9 MiB
Browser evidence
2 of 2 verified

Background removal: common questions

Can Background removal run directly in a browser?
Yes. 2 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Background removal?
The smallest weight on record here is 93.9 MiB; the other entries in this task have no verified size yet. Browser builds usually ship int8 or 4-bit quantised variants, downloaded once and reused from the HTTP cache or Cache Storage.
Which devices suit Background removal?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Vision models →

Read next

All posts →