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

microsoft
/
swin-large-patch4-window12-384-in22k

Image Classification
Transformers
PyTorch
google-tensorflow TensorFlow
swin
vision
Model card Files Files and versions
xet
Community
2

Instructions to use microsoft/swin-large-patch4-window12-384-in22k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use microsoft/swin-large-patch4-window12-384-in22k with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="microsoft/swin-large-patch4-window12-384-in22k")
    pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")
    # Load model directly
    from transformers import AutoImageProcessor, AutoModelForImageClassification
    
    processor = AutoImageProcessor.from_pretrained("microsoft/swin-large-patch4-window12-384-in22k")
    model = AutoModelForImageClassification.from_pretrained("microsoft/swin-large-patch4-window12-384-in22k")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
swin-large-patch4-window12-384-in22k
1.84 GB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 10 commits
amyeroberts's picture
amyeroberts
Add TF model
df0f89c about 4 years ago
  • .gitattributes
    1.18 kB
    initial commit over 4 years ago
  • README.md
    3.75 kB
    Update README.md over 4 years ago
  • config.json
    1.67 MB
    add model over 4 years ago
  • preprocessor_config.json
    255 Bytes
    Update preprocessor_config.json over 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    919 MB
    xet
    Upload pytorch_model.bin with git-lfs over 4 years ago
  • tf_model.h5
    916 MB
    xet
    Add TF model about 4 years ago