Image Segmentation
BiRefNet
Safetensors
Transformers
background-removal
mask-generation
Dichotomous Image Segmentation
Camouflaged Object Detection
Salient Object Detection
pytorch_model_hub_mixin
model_hub_mixin
custom_code
Instructions to use ZhengPeng7/BiRefNet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use ZhengPeng7/BiRefNet with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet", trust_remote_code=True)# Option 2: use with BiRefNet # Install from https://github.com/ZhengPeng7/BiRefNet from models.birefnet import BiRefNet model = BiRefNet.from_pretrained("ZhengPeng7/BiRefNet") - Transformers
How to use ZhengPeng7/BiRefNet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="ZhengPeng7/BiRefNet", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Lowercase birefnet in model card metadata
Verified signatureTo make it work with https://github.com/huggingface/huggingface.js/pull/799. The library name will be correctly displayed as `BiRefNet` once detected as a library (requires to merge the PR + get it deployed).5bd48e8
-
Update the model for general use of which the training data includes portrat seg data.
bb4456a
-
Add pip installation in REAME.
Verified signature598e83d -
Capitalize the BiRefNet when used as the HF model name.
a7bfa64 -
Improve the README.
17f5dfc -
Update the journal in README.
Verified signature00c694e
-
Update README.md
Verified signaturec7d1588
-
Upgrade info display in README.
ba522be -
Upgrade info display in README.
acfe66c -
Upgrade info display in README.
d56e8d2 -
Upgrade info display in README.
98c4b95
-
Ensemble BiRefNet codes to HF to load model with weights in one line.
a7e29d3 -
Ensemble BiRefNet codes to HF to load model with weights in one line.
6f22264 -
Ensemble BiRefNet codes to HF to load model with weights in one line.
40a7dcf -
Remove redundant vis image of demos.
d933a2b -
Add acknowledgement section.
f9584bd -
Add guideline to use BiRefNet. Remove codes of model.
b305b72 -
Add guideline to use BiRefNet. Remove codes of model.
d6ffbb8 -
Move all BiRefNet github codes to the first level directory.
d2056e8 -
Move all BiRefNet github codes to the first level directory.
7e7e527 -
Move all BiRefNet github codes to the first level directory.
d0e8e56 -
Add some metadata (#1)
Verified signature- Add some metadata (601d8b2996809d8f6365b10b960094b5590384e5) Co-authored-by: Omar Sanseviero <osanseviero@users.noreply.huggingface.co>8795865 -
Move all BiRefNet github codes to the first level directory.
ec88fc8 -
Move all BiRefNet github codes to the first level directory.
6a6592d -
Move all BiRefNet github codes to the first level directory.
108ae46 -
Move all BiRefNet github codes to the first level directory.
af31851 -
Move all BiRefNet github codes to the first level directory.
79a6660 -
Move all BiRefNet github codes to the first level directory.
45e89f1
-
For users to load in one key.
d73d557 -
For users to load in one key.
f10d16f -
For users to load in one key.
d8c0335 -
For users to load in one key.
1c4ea53 -
For users to load in one key.
fc65c0f -
For users to load in one key.
0e81815 -
For users to load in one key.
407e35d -
For users to load in one key.
2a41a22 -
For users to load in one key.
c49f4c7 -
For users to load in one key.
456c878 -
For users to load in one key.
1958879 -
For users to load in one key.
5dbbc95 -
For users to load in one key.
e44f5f2 -
For users to load in one key.
7d95f27 -
For users to load in one key.
eced924 -
For users to load in one key.
41cbd4b -
For users to load in one key.
9c894a7 -
For users to load in one key.
238a6a9 -
For users to load in one key.
9f25bda -
For users to load in one key.
acdc9ae -
For users to load in one key.
e7d3448 -
For users to load in one key.
4dbadb1