How to use timm/sam2_hiera_tiny.fb_r896 with timm:
import timm model = timm.create_model("hf_hub:timm/sam2_hiera_tiny.fb_r896", pretrained=True)
How to use timm/sam2_hiera_tiny.fb_r896 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="timm/sam2_hiera_tiny.fb_r896")
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timm/sam2_hiera_tiny.fb_r896", dtype="auto")
The community tab is the place to discuss and collaborate with the HF community!