Instructions to use onnx-community/modnet-webnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/modnet-webnn with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/modnet-webnn');
Update preprocessor_config.json
Browse files- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"resample": 2,
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
-
"width":
|
| 21 |
-
"height":
|
| 22 |
}
|
| 23 |
}
|
|
|
|
| 17 |
"resample": 2,
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
+
"width": 256,
|
| 21 |
+
"height": 256
|
| 22 |
}
|
| 23 |
}
|