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
'Sam3Processor' 'transformers Error
#38
by aniket2025 - opened
I am using the hugguing face code to use sam3 with the bbox as input prompt. I am using transformers as shown in the hugging face repo. The problem lies in the code line:
cannot import name 'Sam3Processor' from 'transformers'
What is the solution for this? I also tried to install transformers from github. It also does not work.
Nice, Good job
You can try pip install transformers --pre to install the latest transformers version which includes sam3
Did you find the solution? I am still facing the same