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-dev
/
BEN2-ONNX

Image Segmentation
ONNX
BEN2
moonbox
background-removal
Model card Files Files and versions
xet
Community

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

  • Libraries
  • BEN2

    How to use moonbox-dev/BEN2-ONNX 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-dev/BEN2-ONNX")
    model.to("cuda").eval()
    foreground = model.inference(image)
    
  • Notebooks
  • Google Colab
  • Kaggle
BEN2-ONNX
467 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
jennyxue's picture
jennyxue
Model card and the original license
c924414 verified 1 day ago
  • BEN2_demo_pictures
    Model card and the original license 1 day ago
  • fp16
    fp16 build of BEN2 Base 1 day ago
  • int4
    int4 build of BEN2 Base 1 day ago
  • int8
    int8 build of BEN2 Base 1 day ago
  • .gitattributes
    1.96 kB
    Model card and the original license 1 day ago
  • README.md
    9.32 kB
    Model card and the original license 1 day ago