Instructions to use optimum/vit-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum/vit-base-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="optimum/vit-base-patch16-224") 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("optimum/vit-base-patch16-224") model = AutoModelForImageClassification.from_pretrained("optimum/vit-base-patch16-224") - Notebooks
- Google Colab
- Kaggle
Specify the head of the model in the model card
#2
by regisss HF Staff - opened
It is not clear in the model card which task this model performs.
It looks great!!!! Let's merge it :D
regisss changed pull request status to merged