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.

Possible to include onnx model that supports dynamic batching ?

#16
by a0g04p1 - opened

Hi,
I was looking at your onnx model files, it looks like only one input image can be passed at a time. Is it possible to have dynamic batching enabled while creating the onnx model ?

It would be great if you can provide the onnx generation code, or the onnx model with batching support.

Thanks!

@Xenova can you tell if and how to support dynamic batching in ONNX?

I did the conversion a long time ago, but if I remember correctly, I ran into some issues when trying to export with dynamic batch size. Maybe someone else can give it a go :)

It was adapted from the notebook in the BiRefNet readme: https://github.com/ZhengPeng7/BiRefNet

Sign up or log in to comment