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

  • Log In
  • Sign Up

microsoft
/
swin-base-patch4-window7-224-in22k

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

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

  • Libraries
  • Transformers

    How to use microsoft/swin-base-patch4-window7-224-in22k with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("image-classification", model="microsoft/swin-base-patch4-window7-224-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-base-patch4-window7-224-in22k")
    model = AutoModelForImageClassification.from_pretrained("microsoft/swin-base-patch4-window7-224-in22k")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
swin-base-patch4-window7-224-in22k
1.31 GB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 11 commits
nielsr's picture
nielsr HF Staff
Update README.md
68dc766 almost 3 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • README.md
    3.73 kB
    Update README.md almost 3 years ago
  • config.json
    1.67 MB
    add model over 4 years ago
  • model.safetensors
    437 MB
    xet
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • preprocessor_config.json
    255 Bytes
    Update preprocessor_config.json over 4 years ago
  • pytorch_model.bin
    437 MB
    xet
    Upload pytorch_model.bin with git-lfs over 4 years ago
  • tf_model.h5
    437 MB
    xet
    Add TF model almost 4 years ago