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
Ctrl+K
Ctrl+K
  • 3 contributors
History: 7 commits
Tomoyuki Suzuki
Add teaser.png with Git LFS
9d4db94 8 months ago
  • .gitattributes
    1.56 kB
    Add teaser.png with Git LFS support 8 months ago
  • BiRefNet_config.py
    298 Bytes
    Initial commit: Original BiRefNet from ZhengPeng7/BiRefNet 8 months ago
  • README.md
    2.01 kB
    Add teaser image 8 months ago
  • birefnet.py
    92.1 kB
    Adapt for layerd: Change hardcoded size from 1024 to 512 (line 56) and add trained weights 8 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
    Adapt for layerd: Change hardcoded size from 1024 to 512 (line 56) and add trained weights 8 months ago
  • requirements.txt
    149 Bytes
    Initial commit: Original BiRefNet from ZhengPeng7/BiRefNet 8 months ago
  • teaser.png
    3.32 MB
    xet
    Add teaser.png with Git LFS 8 months ago