Image Segmentation
BiRefNet
Safetensors
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_lite-2K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use ZhengPeng7/BiRefNet_lite-2K with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet_lite-2K", 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_lite-2K") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Complete the MIT license in the model card.
Verified signature3f789d2
-
Fix the no attribute 'all_tied_weights_keys' issue in transformers==5.0.0.
67d658f -
For the compatibility with the meta device used in transformers==5.0.0.
26ec10b
-
Upgrade the ways of importing timm modules (>=1.0.23).
fb2c294
-
For the compatibility with the latest transformers lib.
Verified signature7fcf524
-
Fix the wrong bb setting. Fix the bug by latest transformers and update req.txt.
14b8e22
-
Fix the backbone setting for the lite version.
Verified signature43bc48d
-
Align lib_name as birefnet and add inference endpoint option.
94260e2
-
Dtype adaptability between FP32 and FP16 in inference.
Verified signature38b17f0
-
Uploading the BiRefNet_lite for 2K.
580b125 -
Uploading the BiRefNet_lite for 2K.
3007575 -
initial commit
Verified signatureb762934