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", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
ffbd27a | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:dfd8ca7de71e90b8ec52b2437a0915e1b41c8bcd64ad8e190b537a8923ab4bc7
size 437161919
|