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")# pip install -U transformers accelerate # 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", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
68dc766 -
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (14620aedef9a932661843863bbaf1a0360162ad4) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5c4c8f1
-
Add TF model
790d9b6
-
Update preprocessor_config.json
2fc58ff -
add model
39d91e8 -
Update README.md
071221c -
Create README.md
5153d9f
-
Upload pytorch_model.bin with git-lfs
ffbd27a -
Upload preprocessor_config.json
9b771d2 -
Upload config.json
a53078e -
initial commit
2b4ca18