Run this model with HF Jobs

Run briaai/RMBG-2.0 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/briaai/RMBG-2.0. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/briaai/RMBG-2.0 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.

Create preprocessor_config.json

#6
by Xenova HF Staff - opened

This PR adds the preprocessor_config.json, meaning you can use HF transformers and transformers.js for image pre-processing

Any hints on how to implement this with transformers.js?

const model = await AutoModel.from_pretrained('briaai/RMBG-2.0', { revision: 'refs/pr/6' });
const processor = await AutoProcessor.from_pretrained('briaai/RMBG-2.0', { revision: 'refs/pr/6' });

Gives me:

image.png

OriLib changed pull request status to merged

Hi, how can I proceed?

Sign up or log in to comment