Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mlx-community
/
BiRefNet-fp16

Image Segmentation
MLX
Safetensors
BiRefNet
matting
background-removal
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/BiRefNet-fp16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/BiRefNet-fp16 with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    huggingface-cli download --local-dir BiRefNet-fp16 mlx-community/BiRefNet-fp16
  • BiRefNet

    How to use mlx-community/BiRefNet-fp16 with BiRefNet:

    # Option 1: use with transformers
    
    from transformers import AutoModelForImageSegmentation
    birefnet = AutoModelForImageSegmentation.from_pretrained("mlx-community/BiRefNet-fp16", 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("mlx-community/BiRefNet-fp16")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
BiRefNet-fp16
440 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
xocialize's picture
xocialize
fp16 MLX conversion of ZhengPeng7/BiRefNet (Swin-L, 1024) β€” soft-alpha matting
b989bb7 verified 1 day ago
  • .gitattributes
    1.52 kB
    initial commit 1 day ago
  • README.md
    1.43 kB
    fp16 MLX conversion of ZhengPeng7/BiRefNet (Swin-L, 1024) β€” soft-alpha matting 1 day ago
  • model.safetensors
    440 MB
    xet
    fp16 MLX conversion of ZhengPeng7/BiRefNet (Swin-L, 1024) β€” soft-alpha matting 1 day ago