Transformers How to use Alecloud123/sam2-hiera-base-plus with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("mask-generation", model="Alecloud123/sam2-hiera-base-plus") # Load model directly
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("Alecloud123/sam2-hiera-base-plus")
model = AutoModel.from_pretrained("Alecloud123/sam2-hiera-base-plus")