Downloads · 30 days
10
4% of all-time downloads
ozair23/autotrain-w5nk2-rvmqx
autotrain-w5nk2-rvmqx is a image classification model from ozair23. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as apache-2.0.
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
263
Public
Repo size
94.8 MB
Likes
0
Public
Click a slice to open those files.
.bin94.6 MB · 100%
From the Hugging Face model README
No validation metrics available
-Here is how to use this model to classify an image of the COCO 2017 dataset into one of the 1,000 ImageNet classes:
from transformers import AutoModelForImageClassification, AutoProcessor
model = AutoModelForImageClassification.from_pretrained("ozair23/autotrain-w5nk2-rvmqx")
processor = AutoProcessor.from_pretrained("ozair23/autotrain-w5nk2-rvmqx")
def predict(image):
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
return outputs