Instructions to use facebook/sam3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam3")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("facebook/sam3") model = AutoModel.from_pretrained("facebook/sam3") - Notebooks
- Google Colab
- Kaggle
can run Streaming Video Inference
#30
by rotem95 - opened
Sam3VideoModel and Sam3VideoProcessor are not in transformers yet
how could i run the Streaming Video Inference from the sam3 repo ?
You can install transformers from the source code(The latest vsrion),pip install git+https://github.com/huggingface/transformers.git
It's now also available on transformers v5 rc0!
pip install transformers --pre