ethz/food101
Viewer • Updated • 101k • 30.4k • 135
This model combines ResNet50 (CNN) and DeiT-Base (ViT) with an adaptive fusion module for state-of-the-art food image classification.
best_model.pth: Trained PyTorch checkpointreal_class_mapping.json: Human-readable class namesconfig.yaml: Training configurationfood101_class_names.json: Original class namesfrom huggingface_hub import hf_hub_download
import torch
# Download model
ckpt_path = hf_hub_download(
repo_id="codealchemist01/food-image-classifier-hybrid",
filename="best_model.pth"
)
# Load checkpoint
checkpoint = torch.load(ckpt_path, map_location="cpu")
Try the live demo: Food Classifier Space
@misc{food-classifier-hybrid,
author = {codealchemist01},
title = {Hybrid Food Image Classifier},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/codealchemist01/food-image-classifier-hybrid}}
}