Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

facebook
/
sam2-hiera-large

Mask Generation
Transformers
Safetensors
sam2_video
feature-extraction
Model card Files Files and versions
xet
Community
3

Instructions to use facebook/sam2-hiera-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/sam2-hiera-large with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("mask-generation", model="facebook/sam2-hiera-large")
    # Load model directly
    from transformers import AutoImageProcessor, AutoModel
    
    processor = AutoImageProcessor.from_pretrained("facebook/sam2-hiera-large")
    model = AutoModel.from_pretrained("facebook/sam2-hiera-large")
  • Notebooks
  • Google Colab
  • Kaggle
sam2-hiera-large
1.8 GB
Ctrl+K
Ctrl+K
  • 5 contributors
History: 8 commits
Kalyanvasudev's picture
Kalyanvasudev
yonigozlan's picture
yonigozlan HF Staff
Add Transformers weights (#3)
e6a8e88 verified 9 months ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    20 kB
    Add Transformers weights (#3) 9 months ago
  • config.json
    5.71 kB
    Add Transformers weights (#3) 9 months ago
  • model.safetensors
    898 MB
    xet
    Add Transformers weights (#3) 9 months ago
  • preprocessor_config.json
    683 Bytes
    Add Transformers weights (#3) 9 months ago
  • processor_config.json
    95 Bytes
    Add Transformers weights (#3) 9 months ago
  • sam2_hiera_l.yaml
    3.7 kB
    Create sam2_hiera_l.yaml almost 2 years ago
  • sam2_hiera_large.pt

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    898 MB
    xet
    Upload sam2_hiera_large.pt almost 2 years ago
  • video_preprocessor_config.json
    705 Bytes
    Add Transformers weights (#3) 9 months ago