Instructions to use wonfy/BiRefNet-ONNX-webgpu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use wonfy/BiRefNet-ONNX-webgpu with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'wonfy/BiRefNet-ONNX-webgpu');
Download config.json from wonfy/BiRefNet-ONNX-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 82 Bytes
-
https://huggingface.co/wonfy/BiRefNet-ONNX-webgpu/resolve/main/config.json
- Command line
-
hf download hf://wonfy/BiRefNet-ONNX-webgpu/config.json
-
curl -L -o config.json https://huggingface.co/wonfy/BiRefNet-ONNX-webgpu/resolve/main/config.json
82 Bytes
| { | |
| "model_type": "swin", | |
| "transformers.js_config": { | |
| "dtype": "fp32" | |
| } | |
| } | |