How to use akramzine/sam2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="akramzine/sam2")
# Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("akramzine/sam2") model = AutoModel.from_pretrained("akramzine/sam2")
The community tab is the place to discuss and collaborate with the HF community!