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

  • Log In
  • Sign Up

moonbox-ai
/
BiRefNet-MLX

Image Segmentation
MLX
Safetensors
BiRefNet
moonbox
background-removal
dichotomous-image-segmentation
Model card Files Files and versions
xet
Community

Instructions to use moonbox-ai/BiRefNet-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use moonbox-ai/BiRefNet-MLX with MLX:

    # Download the model from the Hub
    pip install huggingface_hub[hf_xet]
    
    hf download moonbox-ai/BiRefNet-MLX --local-dir BiRefNet-MLX
  • BiRefNet

    How to use moonbox-ai/BiRefNet-MLX with BiRefNet:

    # Option 1: use with transformers
    
    from transformers import AutoModelForImageSegmentation
    birefnet = AutoModelForImageSegmentation.from_pretrained("moonbox-ai/BiRefNet-MLX", 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("moonbox-ai/BiRefNet-MLX")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • Atomic Chat
BiRefNet-MLX / 8bit
258 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
jennyxue's picture
jennyxue
8bit build of BiRefNet
d9a060b verified about 16 hours ago
  • config.json
    174 Bytes
    8bit build of BiRefNet about 16 hours ago
  • mlx_model.py
    20.1 kB
    8bit build of BiRefNet about 16 hours ago
  • model.safetensors
    258 MB
    xet
    8bit build of BiRefNet about 16 hours ago