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_dynamic-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/BiRefNet_dynamic-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/BiRefNet_dynamic-ONNX');
Align configuration with BiRefNet ONNX template
Browse files- config.json +1 -1
- preprocessor_config.json +1 -1
config.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
{
|
| 2 |
"model_type": "birefnet"
|
| 3 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"model_type": "birefnet"
|
| 3 |
+
}
|
preprocessor_config.json
CHANGED
|
@@ -20,4 +20,4 @@
|
|
| 20 |
"height": 1024,
|
| 21 |
"width": 1024
|
| 22 |
}
|
| 23 |
-
}
|
|
|
|
| 20 |
"height": 1024,
|
| 21 |
"width": 1024
|
| 22 |
}
|
| 23 |
+
}
|