Image Segmentation
Transformers.js
ONNX
BiRefNet
background-removal
mask-generation
Dichotomous Image Segmentation
Camouflaged Object Detection
Salient Object Detection
Instructions to use onnx-community/BiRefNet-COD-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/BiRefNet-COD-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/BiRefNet-COD-ONNX');
Download config.json from onnx-community/BiRefNet-COD-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 30 Bytes
-
https://huggingface.co/onnx-community/BiRefNet-COD-ONNX/resolve/main/config.json
- Command line
-
hf download hf://onnx-community/BiRefNet-COD-ONNX/config.json
-
curl -L -o config.json https://huggingface.co/onnx-community/BiRefNet-COD-ONNX/resolve/main/config.json
30 Bytes
| { | |
| "model_type": "birefnet" | |
| } |