Instructions to use facebook/deit-small-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/deit-small-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="facebook/deit-small-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("facebook/deit-small-patch16-224") model = AutoModelForImageClassification.from_pretrained("facebook/deit-small-patch16-224") - Inference
- Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#4 opened almost 3 years ago
by
SFconvertbot
ValueError: The state dictionary of the model you are trying to load is corrupted. Are you sure it was properly saved?
1
#3 opened over 3 years ago
by
abhishekmamdapure
Accuracy Drop
#2 opened over 3 years ago
by
mhyatt000