Image Segmentation
Transformers.js
ONNX
swin
background-removal
mask-generation
Dichotomous Image Segmentation
Camouflaged Object Detection
Salient Object Detection
Instructions to use onnx-community/BiRefNet_lite-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/BiRefNet_lite-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/BiRefNet_lite-ONNX');
| { | |
| "model_type": "swin", | |
| "transformers.js_config": { | |
| "dtype": "fp32" | |
| } | |
| } |