Animals-10 · ViT-Base/16

Classifies a photo into one of 10 animals: butterfly, cat, chicken, cow, dog, elephant, horse, sheep, spider, squirrel.

google/vit-base-patch16-224 (Vision Transformer pre-trained on ImageNet-21k and fine-tuned on ImageNet-1k) fully fine-tuned with a new 10-class head.

Metric (held-out test, n=2618) Value
Accuracy 0.992
F1 macro 0.992
Precision (macro) 0.993
Recall (macro) 0.991

Confusion matrix

Data: Animals-10, 26,177 photos, stratified split 80/10/10 (train / validation for early stopping / untouched test). The four models of the project share exactly the same split, so their scores are directly comparable.

Training: input 224x224, 3 epochs, on NVIDIA GeForce RTX 5060 Laptop GPU (7.0 min). Code: https://github.com/JTiiz/CNN-project (training/).

Usage

from transformers import pipeline

clf = pipeline("image-classification", model="jramduran/animals10-vit-base")
clf("cat.jpg")
Downloads last month
1
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

Dataset used to train jramduran/animals10-vit-base