CoolFace
Modelpublic

cdstelly/vit-xray-pneumonia-classification

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes12downloads
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-xray-pneumonia-classification

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

  • Loss: 0.1222
  • Accuracy: 0.9614

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: 16
  • evalbatchsize: 16
  • seed: 42
  • gradientaccumulationsteps: 4
  • totaltrainbatch_size: 64
  • optimizer: Use OptimizerNames.ADAMWTORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • lrschedulertype: linear
  • lrschedulerwarmup_ratio: 0.1
  • num_epochs: 15
  • mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracy
0.0730.9882630.10300.9639
0.07191.98821260.14850.9519
0.08132.98821890.14200.9494
0.06023.98822520.09570.9674
0.06884.98823150.10310.9665
0.06645.98823780.10750.9657
0.05256.98824410.12220.9614

Framework versions

  • Transformers 4.48.3
  • Pytorch 2.5.1+cu124
  • Datasets 3.3.1
  • Tokenizers 0.21.0