Downloads · 30 days
12
1% of all-time downloads
echarlaix/vit-food101-int8
vit-food101-int8 is a image classification model from echarlaix. Use it when you need a label for an image. It is set up for transformers. The card lists the license as apache-2.0.
Model Description: This ViT model fine-tuned on Food-101 was statically quantized and exported to the OpenVINO IR using optimum.
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
1.1K
Public
Repo size
88.8 MB
Likes
0
Public
Click a slice to open those files.
.bin88.8 MB · 99%
From the Hugging Face model README
Model Description: This ViT model fine-tuned on Food-101 was statically quantized and exported to the OpenVINO IR using optimum.
You can use this model with Transformers pipeline.
from transformers import pipeline, AutoFeatureExtractor
from optimum.intel.openvino import OVModelForImageClassification
model_id = "echarlaix/vit-food101-int8"
model = OVModelForImageClassification.from_pretrained(model_id)
feature_extractor = AutoFeatureExtractor.from_pretrained(model_id)
pipe = pipeline("image-classification", model=model, feature_extractor=feature_extractor)
outputs = pipe("http://farm2.staticflickr.com/1375/1394861946_171ea43524_z.jpg")