CoolFace
Modelpublic

selmamalak/pneumoniamnist-swin-base-finetuned

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. -->

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.3312
  • —Accuracy: 0.8878
  • —Precision: 0.9217
  • —Recall: 0.8513
  • —F1: 0.8712

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.11800.95610.93130.96080.9446
0.21361.99321470.10150.96370.94980.95620.9529
0.14312.99662210.07290.97520.97320.96150.9672
0.15764.02950.08730.96370.94800.95860.9532
0.20724.98983680.07610.97140.96160.96380.9627
0.19085.99324420.10440.95990.93480.96820.9496
0.16376.99665160.07420.96760.95120.96610.9583
0.13858.05900.18430.93130.89470.95370.9169
0.13358.98986630.06770.97520.96260.97360.9680
0.11869.89837300.07650.97520.96260.97360.9680

Framework versions

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