Run this model with HF Jobs
Run Comfy-Org/BiRefNet-v2 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/Comfy-Org/BiRefNet-v2. 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/Comfy-Org/BiRefNet-v2 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 Comfy-Org/BiRefNet-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/BiRefNet-v2 with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
|
Download README.md from Comfy-Org/BiRefNet-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/Comfy-Org/BiRefNet-v2/resolve/main/README.md
- Command line
-
hf download hf://Comfy-Org/BiRefNet-v2/README.md
-
curl -L -o README.md https://huggingface.co/Comfy-Org/BiRefNet-v2/resolve/main/README.md
1.51 kB
| license: other | |
| license_name: dinov3-license | |
| license_link: https://ai.meta.com/resources/models-and-libraries/dinov3-license | |
| tags: | |
| - comfyui | |
| - diffusion-single-file | |
| base_model: | |
| - ZhengPeng7/BiRefNet-V2-DIS5K | |
| - ZhengPeng7/BiRefNet-V2-COD | |
| - ZhengPeng7/BiRefNet-V2-HRSOD | |
| - ZhengPeng7/BiRefNet-V2_lite-DIS5K | |
| pipeline_tag: mask-generation | |
| # BiRefNet v2 | |
| Repackaged model files for ComfyUI. | |
| Original model repository: | |
| - https://huggingface.co/ZhengPeng7/BiRefNet-V2-DIS5K | |
| - https://huggingface.co/ZhengPeng7/BiRefNet-V2-COD | |
| - https://huggingface.co/ZhengPeng7/BiRefNet-V2-HRSOD | |
| - https://huggingface.co/ZhengPeng7/BiRefNet-V2_lite-DIS5K | |
| ## Model variants | |
| | File | Use it for | | |
| |---|---| | |
| | `birefnet_v2_dis5k_bf16.safetensors` | General background removal that keeps fine detail like hair, wires and thin structures | | |
| | `birefnet_v2_lite_dis5k_bf16.safetensors` | Same as above, smaller and about 2x faster, slightly less accurate | | |
| | `birefnet_v2_cod_bf16.safetensors` | Finding objects that blend into their surroundings, like camouflaged animals | | |
| | `birefnet_v2_hrsod_bf16.safetensors` | Cutting out the main subject of a high-resolution photo | | |
| Place the files in the following folders: | |
| ``` | |
| π ComfyUI/ | |
| βββ π models/ | |
| β βββ π background_removal/ | |
| β β βββ birefnet_v2_cod_bf16.safetensors | |
| β β βββ birefnet_v2_dis5k_bf16.safetensors | |
| β β βββ birefnet_v2_hrsod_bf16.safetensors | |
| β β βββ birefnet_v2_lite_dis5k_bf16.safetensors | |
| ``` |