Instructions to use microsoft/cvt-21-384-22k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/cvt-21-384-22k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="microsoft/cvt-21-384-22k") 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/cvt-21-384-22k") model = AutoModelForImageClassification.from_pretrained("microsoft/cvt-21-384-22k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
0c2d456 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:d5d357f27c7ba7289be8bc15216e1ba4466ac260f23c6aba98d04aa5d2884dea
size 126926347
|