Instructions to use google/vit-base-patch32-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/vit-base-patch32-384 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="google/vit-base-patch32-384") 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-patch32-384") model = AutoModelForImageClassification.from_pretrained("google/vit-base-patch32-384") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit ·
d285164
1
Parent(s): c94def1
Adding `safetensors` variant of this model (#3)
Browse files- Adding `safetensors` variant of this model (b18261655ef41094d0119f165e1443ab245d5c8e)
Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>
- .gitattributes +1 -0
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -14,3 +14,4 @@
|
|
| 14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 14 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
model.safetensors filter=lfs diff=lfs merge=lfs -text
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46ad483c57f427771665b9527ec8e943015153ae9700543b5b4ef131cd3583ad
|
| 3 |
+
size 353212016
|