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_dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use ZhengPeng7/BiRefNet_dynamic with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet_dynamic", 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_dynamic") - Transformers
How to use ZhengPeng7/BiRefNet_dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="ZhengPeng7/BiRefNet_dynamic", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet_dynamic", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix the no attribute 'all_tied_weights_keys' issue in transformers==5.0.0.
2803060 -
For the compatibility with the meta device used in transformers==5.0.0.
ce51266
-
Upgrade the ways of importing timm modules (>=1.0.23).
6b6dad1
-
Remove Transformers.js tag (#1)
Verified signature- Not directly compatible with Transformers.js since the repo is missing ONNX weights (944468d5c6aa19494c2b7669196e2805c314bd4e) Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>3b5c84e
-
For the compatibility with the latest transformers lib.
Verified signature502583a
-
Update the usage names in the handler.
db1d921 -
Add the quantitative comparisons of BiRefNet_dynamics and previous BiRefNet models for genenral use.
Verified signature7403699
-
Add the description of what is the meaning of the dynamic in this model.
Verified signature63478f6
-
Intialization of BiRefNet_dynamic.
c07903b -
Intialization of BiRefNet_dynamic.
2878079 -
initial commit
Verified signature7fee5ed