Image Segmentation
BiRefNet
Safetensors
background-removal
mask-generation
Image Matting
pytorch_model_hub_mixin
model_hub_mixin
custom_code
Instructions to use ZhengPeng7/BiRefNet-matting with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use ZhengPeng7/BiRefNet-matting with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("ZhengPeng7/BiRefNet-matting", 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-matting") - Notebooks
- Google Colab
- Kaggle
Is this model use for 1k or 2k?
#1
by LiuZL - opened
input image should resize to 1024x1024 or 2560x1440?
It's trained in 1024x1024, which is the default setting if not specified :) But it can be executed with any resolution in times of 32.
ZhengPeng7 changed discussion status to closed