CoolFace
Modelpublic

nickmuchi/vit-base-xray-pneumonia

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

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

  • Loss: 0.3387
  • Accuracy: 0.9006

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: 16
  • evalbatchsize: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracy
0.12330.311001.16620.6651
0.08680.612000.33870.9006
0.13870.923000.52970.8237
0.12641.234000.45660.8590
0.08291.535000.68320.8285
0.07341.846000.48860.8157
0.01322.157001.36390.7292
0.08772.458000.52580.8846
0.05162.769000.87720.8013
0.06373.0710000.49470.8558
0.00223.3711001.00620.8045
0.05553.6812000.78220.8285
0.04053.9913001.92880.6779
0.00124.2914001.21530.7981
0.00344.615001.89310.7308
0.03394.9116000.90710.8590
0.00135.2117001.62660.7580
0.03735.5218001.52520.7676
0.0015.8319001.27480.7869
0.00056.1320001.21030.8061
0.00046.4421001.31330.7981
0.00046.7522001.22000.8045
0.00047.0623001.28340.7933
0.00047.3624001.30800.7949
0.00037.6725001.38140.7917
0.00047.9826001.28530.7965
0.00038.2827001.36440.7933
0.00038.5928001.31370.8013
0.00038.929001.35070.7997
0.00039.230001.37510.7997
0.00039.5131001.38840.7981
0.00039.8232001.38310.7997

Example Images

Pneumonia Chest X-Ray

Pneumonia

Normal Chest X-Ray

Normal

Framework versions

  • Transformers 4.17.0
  • Pytorch 1.10.0+cu111
  • Datasets 1.18.4
  • Tokenizers 0.11.6