Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

cyberagent
/
layerd-birefnet

Image Segmentation
Transformers
Safetensors
English
layer decomposition
image segmentation
image matting
design
custom_code
Model card Files Files and versions
xet
Community
7

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)
    # Load model directly
    from transformers import AutoModelForImageSegmentation
    model = AutoModelForImageSegmentation.from_pretrained("cyberagent/layerd-birefnet", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
layerd-birefnet
888 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 10 commits
tomoyukun's picture
tomoyukun
kyamagu's picture
kyamagu
Fix transformers>=4.56 compatibility (#7)
679f743 verified 4 months ago
  • .gitattributes
    1.56 kB
    add-teaser (#3) 7 months ago
  • BiRefNet_config.py
    385 Bytes
    Update BiRefNet_config.py (#6) 4 months ago
  • README.md
    2.04 kB
    Add `library_name: transformers` to metadata (#4) 7 months ago
  • birefnet.py
    92.1 kB
    Fix transformers>=4.56 compatibility (#7) 4 months ago
  • config.json
    405 Bytes
    Initial commit: Original BiRefNet from ZhengPeng7/BiRefNet 8 months ago
  • handler.py
    4.76 kB
    Initial commit: Original BiRefNet from ZhengPeng7/BiRefNet 8 months ago
  • model.safetensors
    885 MB
    xet
    Add 1024 model (#5) 7 months ago
  • requirements.txt
    149 Bytes
    Initial commit: Original BiRefNet from ZhengPeng7/BiRefNet 8 months ago
  • teaser.png
    3.32 MB
    xet
    add-teaser (#3) 7 months ago