CoolFace
Modelpublic

amjadfqs/swin-base-patch4-window7-224-in22k-finetuned-brain-tumor-skullStrippded_04

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

swin-base-patch4-window7-224-in22k-finetuned-brain-tumor-skullStrippded_04

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

  • —Loss: 0.0470
  • —Accuracy: 0.9843
  • —F1 Score: 0.9844
  • —Precision: 0.9846

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.0001
  • —trainbatchsize: 100
  • —evalbatchsize: 100
  • —seed: 42
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 400
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 10

Training results

Training LossEpochStepAccuracyF1 ScoreValidation LossPrecision
1.26621.0160.83700.83090.44240.8464
0.37780.98200.27000.90620.90670.9072
0.23772.0410.20350.92290.92340.9269
0.12012.98610.13450.94650.94670.9512
0.07744.0820.12290.96120.96180.9643
0.04954.981020.05620.98130.98150.9816
0.03586.01230.04700.98430.98440.9846
0.02286.981430.04470.98330.98340.9836
0.01818.01640.04650.98280.98300.9831
0.01328.981840.04360.98330.98350.9836
0.01269.762000.04610.98380.98400.9840

Framework versions

  • —Transformers 4.27.4
  • —Pytorch 2.0.0+cu117
  • —Datasets 2.11.0
  • —Tokenizers 0.13.3