Instructions to use timm/sam2_hiera_large.fb_r1024 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/sam2_hiera_large.fb_r1024 with timm:
import timm model = timm.create_model("hf_hub:timm/sam2_hiera_large.fb_r1024", pretrained=True) - Transformers
How to use timm/sam2_hiera_large.fb_r1024 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="timm/sam2_hiera_large.fb_r1024")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timm/sam2_hiera_large.fb_r1024", dtype="auto") - Notebooks
- Google Colab
- Kaggle
usage example
#1 opened about 1 year ago
by
wendlerc