CoolFace
Modelpublic

trpakov/vit-pneumonia

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

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

  • Loss: 0.1086
  • Accuracy: 0.9768

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 0.0002
  • trainbatchsize: 64
  • evalbatchsize: 64
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: cosine
  • lrschedulerwarmup_ratio: 0.25
  • num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracy
0.03571.01920.09550.9691
0.04042.03840.07200.9751
0.05463.05760.22750.9468
0.01134.07680.13860.9648
0.01015.09600.12120.9708
0.00036.011520.09290.9777
0.00027.013440.10510.9777
0.00028.015360.10750.9777
0.00029.017280.10840.9768
0.000210.019200.10860.9768

Framework versions

  • Transformers 4.26.1
  • Pytorch 1.13.1+cu116
  • Datasets 2.10.1
  • Tokenizers 0.13.2