Skip to content
ModelListedExternal
Download

Ormbg ONNX

If you haven't already, you can install the Transformers.js JavaScript library from NPM using: npm i @huggingface/transformers

KindOtherBase modelschirrmacher/ormbgVersionRevision 034e2d8Bgrade

Model source

Kind
Other
File size
42.3–168 MB
Base model
schirrmacher/ormbg
Version
vRevision 034e2d8
Updated
Oct 9, 2026
Downloads
18.4K
Source
Hugging Face

Source description

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

Example: Remove background of an image

import { pipeline } from '@huggingface/transformers';

const segmenter = await pipeline('background-removal', 'onnx-community/ormbg-ONNX');
const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024';
const output = await segmenter([url]);
output[0].save('mask.png');
// You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.

Sources

1 source
Hugging FacePrimaryVersion 034e2d884afbab897e10e78fc5bb566b29533fd6
huggingface.co/onnx-community/ormbg-ONNX/tree/034e2d884afbab897e10e78fc5bb566b29533fd6

Verified Oct 9

Model artifacts

8 artifacts

onnx/model_bnb4.onnx

onnx · 168 MB · SHA-256 d75c6579e861…bcc6 · Hugging Face

Download

onnx/model_fp16.onnx

onnx · 84.0 MB · SHA-256 06e4236d2c2f…cf57 · Hugging Face

Download

onnx/model_int8.onnx

onnx · 42.3 MB · SHA-256 905f6c0d4e10…4714 · Hugging Face

Download

onnx/model_q4.onnx

onnx · 168 MB · SHA-256 d75c6579e861…bcc6 · Hugging Face

Download

onnx/model_q4f16.onnx

onnx · 84.0 MB · SHA-256 13aa059ef3d1…0c03 · Hugging Face

Download

onnx/model_quantized.onnx

onnx · 42.3 MB · SHA-256 ffbcae62a7b6…0171 · Hugging Face

Download

onnx/model_uint8.onnx

onnx · 42.3 MB · SHA-256 ffbcae62a7b6…0171 · Hugging Face

Download

onnx/model.onnx

onnx · 168 MB · SHA-256 2830b6f46180…09c9 · Hugging Face

Download

Source excerpts

3 excerpts

--- license: apache-2.0 base_model: - schirrmacher/ormbg pipeline_tag: image-segmentation library_name: transformers.js tags: - background-removal --- ## Usage (Transformers.js) If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using: ```bash npm i @huggingface/transformers ``` **Example**: Remove background of an image ```js import { pipeline } from '@huggingface/transformers'; const segmenter = await pipeline('background-removal', 'onnx-community/ormbg-ONNX'); const url = 'https://images.pexels.com/photos/5965592/pexels-photo-5965592.jpeg?auto=compress&cs=tinysrgb&w=1024'; const output = await segmenter([url]); output[0].save('mask.png'); // You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving. ```

Source context: 18397 downloads · 11 likes · Pipeline image-segmentation · Library transformers.js · Repo onnx-community/ormbg-ONNX

Source context: 8724 downloads · 10 likes · Pipeline image-segmentation · Library transformers.js · Repo onnx-community/ormbg-ONNX