Downloads · 30 days
7
19% of all-time downloads
codealchemist01/food-image-classifier-hybrid
food-image-classifier-hybrid is a image classification model from codealchemist01. 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.
This model combines ResNet50 (CNN) and DeiT-Base (ViT) with an adaptive fusion module for state-of-the-art food image classification.
Downloads · 30 days
7
19% of all-time downloads
All-time downloads
36
Public
Repo size
1.2 GB
Likes
1
Public
Click a slice to open those files.
.pth1.2 GB · 100%
From the Hugging Face model README
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}}
}