Run this model with HF Jobs
Run Saimon8420/ormbg-web on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Saimon8420/ormbg-web. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Saimon8420/ormbg-web on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Saimon8420/ormbg-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Saimon8420/ormbg-web with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'Saimon8420/ormbg-web');
ORMBG β compact web build (44 MB)
A compact build of ORMBG (Open Remove Background Model, by schirrmacher) for fast in-browser background removal with Transformers.js / onnxruntime-web.
Used by the free Doetra Background Remover.
What changed vs. onnx-community/ormbg-ONNX
- Graph upgraded from opset 11 to opset 17.
- int8 per-channel weights (
DequantizeLinear) for convolutions, fp16 for the remaining large tensors, fp32 compute β 44 MB instead of 176 MB. Mask difference vs. fp32: mean 0.2/255, 99.93%+ identical after thresholding. - Runs on WebGPU without
shader-f16support.
Usage
import { AutoModel, AutoProcessor } from '@huggingface/transformers'
const model = await AutoModel.from_pretrained('Saimon8420/ormbg-web', { dtype: 'fp32', device: 'webgpu' })
const processor = await AutoProcessor.from_pretrained('Saimon8420/ormbg-web')
Input pixel_values [1, 3, 1024, 1024] in [0, 1]; output alphas [1, 1, 1024, 1024] in [0, 1].
Credits & license
- ORMBG by Maximilian Schirrmacher β https://github.com/schirrmacher/ormbg (Apache-2.0); ONNX by onnx-community.
- Redistributed under the same Apache-2.0 license.
- Downloads last month
- 166
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'Saimon8420/ormbg-web');