Instructions to use microsoft/cvt-21 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/cvt-21 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="microsoft/cvt-21") 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") model = AutoModelForImageClassification.from_pretrained("microsoft/cvt-21", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add TF weights
Model converted by the [`transformers`' `pt_to_tf` CLI](https://github.com/huggingface/transformers/blob/main/src/transformers/commands/pt_to_tf.py). All converted model outputs and hidden layers were validated against its Pytorch counterpart. Maximum crossload output difference=2.437e-04; Maximum crossload hidden layer difference=1.007e-02; Maximum conversion output difference=2.437e-04; Maximum conversion hidden layer difference=1.007e-02; CAUTION: The maximum admissible error was manually increased to 0.02!e8dab96
-
Update README.md
21534c7
-
Update
f7d4d52 -
initial commit
25634b9