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="ewanlong/food_type_image_detection")
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("ewanlong/food_type_image_detection")
model = AutoModelForImageClassification.from_pretrained("ewanlong/food_type_image_detection")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Model Card

  • Model Name: Food Type Image Detection Vision Transformer
  • Original Model: Vision Transformer (ViT) model pre-trained on ImageNet-21k (14 million images, 21,843 classes) at resolution 224x224.
  • Model Type: Image Classification
  • Model Architecture: Vision Transformer (ViT)
  • Fine-tuning:
    • Fine-tuned on Food Image Classification Dataset by using 12 varieties of these 35 varieties
    • Optimizer: AdamW
    • Epochs: 20
  • Model Performance: Achieved an accuracy of 96.23% on all of the kinds of Food Image Classification Dataset
Downloads last month
13
Safetensors
Model size
85.8M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Spaces using ewanlong/food_type_image_detection 2

Paper for ewanlong/food_type_image_detection