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

  • Log In
  • Sign Up

facebook
/
sam-vit-huge

Mask Generation
Transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
sam
vision
Model card Files Files and versions
xet
Community
13

Instructions to use facebook/sam-vit-huge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use facebook/sam-vit-huge with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("mask-generation", model="facebook/sam-vit-huge")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMaskGeneration
    
    processor = AutoProcessor.from_pretrained("facebook/sam-vit-huge")
    model = AutoModelForMaskGeneration.from_pretrained("facebook/sam-vit-huge")
  • Notebooks
  • Google Colab
  • Kaggle
sam-vit-huge
7.69 GB
Ctrl+K
Ctrl+K
  • 10 contributors
History: 29 commits
nielsr's picture
nielsr HF Staff
Update README.md
87aecf0 verified over 2 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    6.89 kB
    Update README.md over 2 years ago
  • config.json
    6.57 kB
    Add TF weights almost 3 years ago
  • model.safetensors
    2.56 GB
    xet
    Adding `safetensors` variant of this model (#9) over 2 years ago
  • preprocessor_config.json
    466 Bytes
    Upload processor about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (3)

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

    What is a pickle import?

    2.56 GB
    xet
    Upload SamForMaskGeneration about 3 years ago
  • tf_model.h5
    2.57 GB
    xet
    Add TF weights almost 3 years ago