CoolFace
Modelpublic

selmamalak/organsmnist-swin-base-finetuned

sourceHugging Faceapache-2.0updated 2y 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. -->

organsmnist-swin-base-finetuned

This model is a fine-tuned version of microsoft/swin-large-patch4-window7-224-in22k on the medmnist-v2 dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.4655
  • —Accuracy: 0.8230
  • —Precision: 0.7898
  • —Recall: 0.7786
  • —F1: 0.7831

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.9181.02180.42490.83560.81390.77950.7529
0.8892.04360.45930.82630.79160.76950.7668
0.85663.06540.32930.87480.85050.82050.8088
0.77814.08720.34550.86790.83130.80880.7921
0.72415.010900.35650.86910.87580.81100.7902
0.65686.013080.33370.88090.84580.82950.8081
0.56437.015260.25810.89720.83920.83770.8332
0.58348.017440.27060.89560.84020.83600.8319
0.47719.019620.27210.90010.85240.84450.8364
0.510210.021800.28980.90090.84600.84100.8407

Framework versions

  • —PEFT 0.11.1
  • —Transformers 4.39.3
  • —Pytorch 2.1.2
  • —Datasets 2.18.0
  • —Tokenizers 0.15.2