Image Segmentation
Transformers
Safetensors
English
layer decomposition
image segmentation
image matting
design
custom_code
Run this model with HF Jobs
Run cyberagent/layerd-birefnet 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/cyberagent/layerd-birefnet. 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/cyberagent/layerd-birefnet 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 cyberagent/layerd-birefnet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cyberagent/layerd-birefnet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="cyberagent/layerd-birefnet", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("cyberagent/layerd-birefnet", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update BiRefNet_config.py (#6)
Browse files- Update BiRefNet_config.py (e60c69e7655889e3095bf651fc7d336b87fb1081)
Co-authored-by: Kota Yamaguchi <kyamagu@users.noreply.huggingface.co>
4 unmodified lines5678910114 unmodified linesdef __init__(self,bb_pretrained=False,**kwargs):self.bb_pretrained = bb_pretrainedsuper().__init__(**kwargs)4 unmodified lines56789101112134 unmodified linesdef __init__(self,bb_pretrained=False,is_encoder_decoder=False,**kwargs):self.bb_pretrained = bb_pretrainedself.is_encoder_decoder = is_encoder_decodersuper().__init__(**kwargs)
BiRefNet_config.py+2