Transformers.js · Model
U²-Netp
The pruned U²-Net at 4.4 MB — the smallest salient-object model worth shipping, and the ancestor of most background-removal pipelines. Output is a coarse saliency map, so it needs refinement for hair and thin edges.
Upstream browser example
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.
| Entry | Entry type | Framework | Resources | License | Browser evidence | Links |
|---|---|---|---|---|---|---|
U²-Netp The pruned U²-Net at 4.4 MB — the smallest salient-object model worth shipping, and the ancestor of most background-removal pipelines. Output is a coarse saliency map, so it needs refinement for hair and thin edges. Tasks: Segmentation | Model | Transformers.js | fp32: 4.4 MiB | Code license: Apache-2.0 Weight license: Apache-2.0 | Upstream browser example Reference ↗Source review is not a browser execution test. | |
Sources and comparison details
Deployment variants
Performance and compatibility measurementsCompare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size. Not measured
| ||||||
Running U²-Netp in the browser
U²-Netp sits under Vision / Segmentation and is listed as a Model running on Transformers.js. Its verified weight size is 4.4 MiB. The evidence is an upstream browser example; this site has not tested it yet.
The typical way to load weights like these is to serve quantised ONNX from a CDN or your own origin, run them through the in-page runtime, and fall back to WebAssembly when WebGPU is unavailable. Code licence: Apache-2.0; weight licence: Apache-2.0 — check the original repository before commercial use.
U²-Netp: common questions
- Can U²-Netp be used commercially?
- This catalogue records “Apache-2.0 / Apache-2.0”. Terms come from the model repository; the label here only reflects what was checked. If no licence is stated, do not ship it commercially.
- How large are U²-Netp weights?
- The recorded size is 4.4 MiB. Quantisation variants differ a lot, so prefer the int8 or 4-bit build for the browser.
- How do I call U²-Netp from a project?
- Most entries load through Transformers.js: host the weights somewhere the browser can fetch, initialise the runtime on the page, then submit text, image or audio for the task. The exact API lives in the model repository and the runtime docs.
- 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.