Downloads · 30 days
5
8% of all-time downloads
cholpona/vit-base-patch16-224-pizza-burger-sushi
vit-base-patch16-224-pizza-burger-sushi is a image classification model from cholpona. 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.
A 3-class image classifier built by fully fine-tuning google/vit-base-patch16-224 on a small custom dataset merged from two Hugging Face sources.
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
59
Public
Parameters
85.8M
343 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors343 MB · 100%
From the Hugging Face model README
A 3-class image classifier built by fully fine-tuning google/vit-base-patch16-224 on a small custom dataset merged from two Hugging Face sources.
| id | label |
|---|---|
| 0 | pizza |
| 1 | burger |
| 2 | sushi |
from transformers import pipeline
clf = pipeline("image-classification", model="cholpona/vit-base-patch16-224-pizza-burger-sushi")
clf("path/to/image.jpg")
Custom merge of two Hugging Face datasets. The merged dataset itself is not redistributed; see the recipe repo to reproduce: cholpona/pizza-burger-sushi-recipe.
| Source | Provides | License |
|---|---|---|
Shad0wKillar/pizza_steak_sushi | pizza, sushi | MIT |
NexaAIalex/Burger | burger | unspecified — see source dataset card |
Splits: ~150 train / 46 test per class — 454 train + 138 test images total.
5e-5save_total_limit=2load_best_model_at_end=True, metric_for_best_model="macro_f1"Full setup in the project repo training notebook (notebooks/finetune_vit_pizza_burger_sushi.ipynb).
| metric | value |
|---|---|
| accuracy | 1.000 |
| macro F1 | 1.000 |
Per-class report:
precision recall f1-score support
pizza 1.0000 1.0000 1.0000 46
burger 1.0000 1.0000 1.0000 46
sushi 1.0000 1.0000 1.0000 46
The 138-image test set saturates at 100%. The model was additionally evaluated on 707 unseen burger images from NexaAIalex/Burger that were not used in train or test, alongside a linear-probe baseline — the frozen pretrained google/vit-base-patch16-224 features + a logistic regression head trained on the same 454-image train split. This isolates the contribution of full fine-tuning beyond what the off-the-shelf ImageNet-pretrained features already encode.
| model | held-out burger recall |
|---|---|
| Linear probe (frozen base + LogReg) | 97.03% (686 / 707) |
| This model (full fine-tune) | 99.29% (702 / 707) |
Note: single-class eval — every image is a burger, so the metric is recall on the burger class on a larger same-source sample, not full multi-class accuracy. It measures at-distribution generalization for one class; it does not measure how the model handles unseen pizza or sushi distributions.
Model weights: Apache 2.0, inherited from the base model google/vit-base-patch16-224.
Training data licenses differ — see the Training data table. The model weights do not redistribute the underlying images.
google/vit-base-patch16-224Shad0wKillar/pizza_steak_sushiNexaAIalex/Burger@misc{vit_pizza_burger_sushi_2026,
author = {cholpona},
title = {ViT-base fine-tuned on pizza / burger / sushi},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/cholpona/vit-base-patch16-224-pizza-burger-sushi}}
}