How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-classification", model="lysandre/tiny-vit-random")
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("lysandre/tiny-vit-random")
model = AutoModelForImageClassification.from_pretrained("lysandre/tiny-vit-random")
Quick Links

No model card

Downloads last month
1,347
Inference Providers NEW

Spaces using lysandre/tiny-vit-random 5