Instructions to use Xenova/modnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/modnet with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'Xenova/modnet');
Commit History
-
Add/update the quantized ONNX model files and README.md for Transformers.js v3
Verified signature## Applied Quantizations ### ✅ Based on `model.onnx` *with* slimming ↳ ❌ `int8`: `model_int8.onnx` (added but JS-based E2E test failed) ``` /home/ubuntu/src/tjsmigration/node_modules/.pnpm/onnxruntime-node@1.21.0/node_modules/onnxruntime-node/dist/backend.js:25 __classPrivateFieldGet(this, _OnnxruntimeSessionHandler_inferenceSession, "f").loadModel(pathOrBuffer, options); ^ Error: Could not find an implementation for ConvInteger(10) node with name 'Conv_0_quant' at new OnnxruntimeSessionHandler (/home/ubuntu/src/tjsmigration/node_modules/.pnpm/onnxruntime-node@1.21.0/node_modules/onnxruntime-node/dist/backend.js:25:92) at Immediate.<anonymous> (/home/ubuntu/src/tjsmigration/node_modules/.pnpm/onnxruntime-node@1.21.0/node_modules/onnxruntime-node/dist/backend.js:67:29) at process.processImmediate (node:internal/timers:485:21) Node.js v22.16.0 ``` ↳ ✅ `uint8`: `model_uin…6cf7b7f
-
Update config.json
Verified signaturee71ff16
-
Update to Transformers.js v3
Verified signaturea9f454a
-
Update README.md
Verified signature663b173
-
Update README.md
Verified signaturec61fb90
-
Upload fp16 ONNX weights
Verified signatureb2cbaaf
-
Update README.md
Verified signatureba9a4b6 -
Upload quantize_config.json
Verified signatureac7017c -
Upload model_quantized.onnx
Verified signatured73298e -
Upload model_quantized.onnx
Verified signature332ccac -
Update README.md
Verified signature462ed15 -
Update README.md
Verified signature5810807 -
Create README.md
Verified signature7069a32 -
Update config.json
Verified signature1630fe9 -
Create config.json
Verified signature2240317 -
Update preprocessor_config.json
Verified signaturec97c872 -
Create preprocessor_config.json
Verified signature39f880b -
Upload model.onnx
Verified signaturee231692 -
initial commit
Verified signature089666b