Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • 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
2.56 GB
Ctrl+K
Ctrl+K
  • 10 contributors
History: 13 commits
mishig's picture
mishig HF Staff
Update README.md
977abf9 about 3 years ago
  • .gitattributes
    1.48 kB
    initial commit about 3 years ago
  • README.md
    3.95 kB
    Update README.md about 3 years ago
  • config.json
    6.53 kB
    Upload SamForMaskGeneration about 3 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