CoolFace
Modelpublic

Schram03/fruits-classification

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
0likes36downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

fruits-classification

This model is a fine-tuned version of google/vit-base-patch16-224 on the augmented Schram03/fruits dataset. It achieves the following results on the evaluation set:

  • Loss: 0.3039
  • Accuracy: 0.9280

Model description

This model classifies the 33 different types of fruit in the Schram03/fruits dataset.

Intended uses & limitations

With further developement it could be possible to differentiat foul fruits or specific subtypes of fruit. This however would need an extensive Dataset. Currently the model is able to differentiat the trained 33 types of fruit. However, there are limitations especially when using similar fruits like peaches and nectarines.

Training and evaluation data

80 % Train, 20 % Evaluation

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0003
  • trainbatchsize: 16
  • evalbatchsize: 8
  • seed: 42
  • lrschedulertype: linear
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossAccuracy
0.58161.010700.52380.8887
0.37612.021400.35680.9182
0.29343.032100.28520.9322
0.27194.042800.26810.9388
0.2535.053500.27050.9388

Framework versions

  • Transformers 4.52.3
  • Pytorch 2.7.0+cu128
  • Datasets 3.6.0
  • Tokenizers 0.21.1