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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

shi-labs
/
oneformer_ade20k_swin_large

Image Segmentation
Transformers
PyTorch
oneformer
vision
universal-image-segmentation
Model card Files Files and versions
xet
Community
6

Instructions to use shi-labs/oneformer_ade20k_swin_large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use shi-labs/oneformer_ade20k_swin_large with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-segmentation", model="shi-labs/oneformer_ade20k_swin_large")
    # Load model directly
    from transformers import AutoProcessor, OneFormerForUniversalSegmentation
    
    processor = AutoProcessor.from_pretrained("shi-labs/oneformer_ade20k_swin_large")
    model = OneFormerForUniversalSegmentation.from_pretrained("shi-labs/oneformer_ade20k_swin_large", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
oneformer_ade20k_swin_large
1.83 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 41 commits
nielsr's picture
nielsr HF Staff
Fix typos
4a5bac8 over 3 years ago
  • .gitattributes
    1.48 kB
    initial commit over 3 years ago
  • 250_16_swin_l_oneformer_ade20k_160k.pth

    Detected Pickle imports (4)

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

    What is a pickle import?

    950 MB
    xet
    Upload Model over 3 years ago
  • README.md
    3.69 kB
    Fix typos over 3 years ago
  • config.json
    84.3 kB
    Add model over 3 years ago
  • merges.txt
    525 kB
    Add configs over 3 years ago
  • preprocessor_config.json
    8.71 kB
    Add configs over 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    880 MB
    xet
    Add model over 3 years ago
  • special_tokens_map.json
    472 Bytes
    Add configs over 3 years ago
  • tokenizer_config.json
    808 Bytes
    Add configs over 3 years ago
  • vocab.json
    1.06 MB
    Add configs over 3 years ago