CoolFace
Modelpublic

Shivagowri/vit-snacks

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
0likes31downloads
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. -->

vit-snacks

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

  • Loss: 0.2754
  • Accuracy: 0.9393

Model description

upload any image of your fave yummy snack

Intended uses & limitations

there are only 20 different varieties of snacks

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0002
  • trainbatchsize: 16
  • evalbatchsize: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossAccuracy
0.87240.331000.91180.8670
0.56280.662000.68730.8471
0.44210.993000.49950.8691
0.28371.324000.40080.9026
0.16451.655000.37020.9058
0.16041.986000.39810.8921
0.04982.317000.31850.9204
0.04062.648000.34270.9141
0.10492.979000.34440.9173
0.02723.310000.31680.9246
0.01863.6311000.31420.9288
0.02033.9612000.29310.9298
0.0074.2913000.27540.9393
0.00724.6214000.27780.9403
0.00734.9515000.27820.9393

Framework versions

  • Transformers 4.20.1
  • Pytorch 1.11.0+cu113
  • Datasets 2.3.2
  • Tokenizers 0.12.1