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
File size: 134 Bytes
deb2b83 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:2d4ac960f6f33f26225458f59b226f3a8f9d5f113b88ef2136d727fa33c8bbfa
size 490228220
|