CoolFace
Modelpublic

Hemg/pneumonia-classification-model

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

pneumonia-classification-model

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

  • Loss: 0.1143
  • Accuracy: 0.9657

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: 5e-05
  • trainbatchsize: 32
  • evalbatchsize: 32
  • seed: 42
  • gradientaccumulationsteps: 4
  • totaltrainbatch_size: 128
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • lrschedulerwarmup_ratio: 0.1
  • num_epochs: 32

Training results

Training LossEpochStepValidation LossAccuracy
0.62970.98250.52580.7230
0.37812.0510.30110.9154
0.22682.98760.19810.9314
0.18274.01020.16020.9473
0.17654.981270.14460.9461
0.15086.01530.14490.9510
0.13326.981780.15100.9375
0.11878.02040.11690.9596
0.1318.982290.13150.9559
0.104310.02550.11140.9571
0.102210.982800.16330.9375
0.089312.03060.11670.9596
0.084812.983310.09360.9694
0.088514.03570.10740.9608
0.092814.983820.10520.9645
0.077616.04080.11160.9608
0.089516.984330.10600.9645
0.081718.04590.11070.9632
0.076618.984840.09930.9669
0.069720.05100.09380.9681
0.062620.985350.11990.9620
0.066522.05610.11000.9657
0.061322.985860.12460.9620
0.05424.06120.10660.9645
0.047424.986370.11000.9669
0.045626.06630.11180.9645
0.047326.986880.11370.9645
0.054328.07140.09550.9632
0.049328.987390.13000.9559
0.04330.07650.12290.9669
0.03930.987900.11250.9608
0.039831.378000.11430.9657

Framework versions

  • Transformers 4.38.1
  • Pytorch 2.1.2
  • Datasets 2.1.0
  • Tokenizers 0.15.2