Instructions to use microsoft/swin-base-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-base-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-base-patch4-window12-384-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-window12-384-in22k") model = AutoModelForImageClassification.from_pretrained("microsoft/swin-base-patch4-window12-384-in22k", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Add TF model
c2c8cfc
-
Update preprocessor_config.json
72a5c4a -
Add id2label
f043025 -
Update README.md
1e5afa2 -
Create README.md
aca1aff
-
Upload pytorch_model.bin with git-lfs
b767a95 -
Upload preprocessor_config.json
90b8013 -
Upload config.json
b6b555d -
initial commit
89edccb