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
/
BEN2-MLX

Image Segmentation
MLX
Safetensors
BEN2
moonbox
background-removal
image-matting
Model card Files Files and versions
xet
Community

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

  • Libraries
  • MLX

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

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

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

    import requests
    from PIL import Image
    from ben2 import AutoModel
    
    url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg"
    image = Image.open(requests.get(url, stream=True).raw)
    
    model = AutoModel.from_pretrained("moonbox-ai/BEN2-MLX")
    model.to("cuda").eval()
    foreground = model.inference(image)
    
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • LM Studio
  • Atomic Chat
BEN2-MLX / bf16
188 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
jennyxue's picture
jennyxue
bf16 build of BEN2 Base
1158eb0 verified about 16 hours ago
  • config.json
    203 Bytes
    bf16 build of BEN2 Base about 16 hours ago
  • mlx_model.py
    20.5 kB
    bf16 build of BEN2 Base about 16 hours ago
  • model.safetensors
    188 MB
    xet
    bf16 build of BEN2 Base about 16 hours ago