Instructions to use google/vit-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/vit-base-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="google/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("google/vit-base-patch16-224") model = AutoModelForImageClassification.from_pretrained("google/vit-base-patch16-224") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
#10
by niganuga - opened
README.md
CHANGED
|
@@ -3,9 +3,12 @@ license: apache-2.0
|
|
| 3 |
tags:
|
| 4 |
- vision
|
| 5 |
- image-classification
|
|
|
|
|
|
|
| 6 |
datasets:
|
| 7 |
- imagenet-1k
|
| 8 |
- imagenet-21k
|
|
|
|
| 9 |
widget:
|
| 10 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
| 11 |
example_title: Tiger
|
|
|
|
| 3 |
tags:
|
| 4 |
- vision
|
| 5 |
- image-classification
|
| 6 |
+
- art
|
| 7 |
+
- music
|
| 8 |
datasets:
|
| 9 |
- imagenet-1k
|
| 10 |
- imagenet-21k
|
| 11 |
+
- Salesforce/dialogstudio
|
| 12 |
widget:
|
| 13 |
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
| 14 |
example_title: Tiger
|