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-TensorRT

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

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

  • Libraries
  • TensorRT

    How to use moonbox-dev/BEN2-TensorRT with TensorRT:

    # No code snippets available yet for this library.
    
    # To use this model, check the repository files and the library's documentation.
    
    # Want to help? PRs adding snippets are welcome at:
    # https://github.com/huggingface/huggingface.js
  • BEN2

    How to use moonbox-dev/BEN2-TensorRT 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-TensorRT")
    model.to("cuda").eval()
    foreground = model.inference(image)
    
  • Notebooks
  • Google Colab
  • Kaggle
BEN2-TensorRT
510 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
jennyxue's picture
jennyxue
Model card and the original license
0b76467 verified about 19 hours ago
  • BEN2_demo_pictures
    Model card and the original license about 19 hours ago
  • fp16
    fp16 build of BEN2 Base about 19 hours ago
  • .gitattributes
    2.01 kB
    Model card and the original license about 19 hours ago
  • README.md
    9.75 kB
    Model card and the original license about 19 hours ago