CoolFace
Modelpublic

saketsarin/vit-base-patch16-224-in21k_brain_tumor_diagnosis

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
1likes15downloads
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-base-patch16-224-in21kbraintumor_diagnosis

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

  • —Loss: 0.0630
  • —Accuracy: 0.9858
  • —F1: 0.9858
  • —Recall: 0.9858
  • —Precision: 0.9858

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.0002
  • —trainbatchsize: 16
  • —evalbatchsize: 8
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 5

Training results

Training LossEpochStepValidation LossAccuracyF1RecallPrecision
1.3791.03520.21590.93100.93100.93100.9390
0.2392.07040.08140.97650.97660.97650.9767
0.07483.010560.08220.98080.98080.98080.9812
0.07484.014080.06510.98580.98580.98580.9858
0.01255.017600.06300.98580.98580.98580.9858

Framework versions

  • —Transformers 4.35.0
  • —Pytorch 2.1.0
  • —Datasets 2.14.6
  • —Tokenizers 0.14.1