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

  • Log In
  • Sign Up

facebook
/
sam-vit-base

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

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

  • Libraries
  • Transformers

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

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("mask-generation", model="facebook/sam-vit-base")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMaskGeneration
    
    processor = AutoProcessor.from_pretrained("facebook/sam-vit-base")
    model = AutoModelForMaskGeneration.from_pretrained("facebook/sam-vit-base")
  • Notebooks
  • Google Colab
  • Kaggle
sam-vit-base
1.13 GB
Ctrl+K
Ctrl+K
  • 8 contributors
History: 11 commits
nielsr's picture
nielsr HF Staff
Update README.md
70c1a07 verified over 2 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    6.73 kB
    Update README.md over 2 years ago
  • config.json
    6.57 kB
    Add TF weights almost 3 years ago
  • model.safetensors
    375 MB
    xet
    Adding `safetensors` variant of this model (#5) 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",
    • "collections.OrderedDict",
    • "torch.FloatStorage"

    What is a pickle import?

    375 MB
    xet
    Upload model about 3 years ago
  • tf_model.h5
    375 MB
    xet
    Add TF weights almost 3 years ago