CoolFace
Modelpublic

selmamalak/pneumoniamnist-vit-base-finetuned

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

pneumoniamnist-vit-base-finetuned

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

  • —Loss: 0.1773
  • —Accuracy: 0.9359
  • —Precision: 0.9474
  • —Recall: 0.9179
  • —F1: 0.9295

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.005
  • —trainbatchsize: 16
  • —evalbatchsize: 16
  • —seed: 42
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 64
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 10
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyPrecisionRecallF1
0.24470.9898730.15380.93510.90130.94660.9200
0.34661.99321470.24510.91220.91970.84660.8750
0.20742.99662210.17110.94270.95380.89610.9203
0.19284.02950.10440.96180.94820.95250.9503
0.20434.98983680.10070.95800.94910.94030.9446
0.17175.99324420.09300.96180.94320.95980.9510
0.14986.99665160.08450.96370.94480.96350.9536
0.15318.05900.16610.93320.89740.95260.9188
0.14518.98986630.07600.96370.94640.96110.9534
0.12639.89837300.08240.95800.93550.95960.9466

Framework versions

  • —PEFT 0.11.1
  • —Transformers 4.41.1
  • —Pytorch 2.3.0+cu121
  • —Datasets 2.19.1
  • —Tokenizers 0.19.1