---
title: ormbg-ONNX
canonical_url: "https://www.modelscope.cn/models/onnx-community/ormbg-ONNX"
md_url: "https://www.modelscope.cn/models/onnx-community/ormbg-ONNX.md"
repository: onnx-community/ormbg-ONNX
last_updated: 2026-04-15
license: apache-2.0
pipeline_tag: image-segmentation
tasks:
  - image-segmentation
model_type:
  - isnet
base_model:
  - schirrmacher/ormbg
base_model_relation: finetune
library_name:
  - onnx
  - pytorch
frameworks:
  - pytorch
downloads: 1738
stars: 1
tags:
  - background-removal
---

# ormbg-ONNX

> ormbg-ONNX - onnx-community 在 ModelScope 开源的模型。Usage (Transformers.js)

onnx-community/ormbg-ONNX 是 ModelScope 魔搭社区上的image-segmentation模型，采用 apache-2.0 许可，基于 schirrmacher/ormbg 构建。

- **Repository**: onnx-community/ormbg-ONNX
- **License**: apache-2.0
- **Tasks**: image-segmentation
- **Base model**: schirrmacher/ormbg
- **Tags**: background-removal
- **Downloads**: 1738
- **Stars**: 1
- **Last updated**: 2026-04-15

Source: https://www.modelscope.cn/models/onnx-community/ormbg-ONNX

---

## 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.
```
