Edit model card

finetuned-BrainTumor-2.0

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

  • Loss: 0.1038
  • Accuracy: 0.9743

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
  • train_batch_size: 16
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 2

Training results

Training Loss Epoch Step Validation Loss Accuracy
0.3701 0.3289 100 0.2643 0.9183
0.3706 0.6579 200 0.2855 0.9125
0.1825 0.9868 300 0.1563 0.9510
0.1405 1.3158 400 0.1656 0.9382
0.1684 1.6447 500 0.1038 0.9743
0.1363 1.9737 600 0.1086 0.9697

Framework versions

  • Transformers 4.40.0
  • Pytorch 2.2.1+cu121
  • Datasets 2.19.0
  • Tokenizers 0.19.1
Downloads last month
3
Safetensors
Model size
85.8M params
Tensor type
F32
·

Finetuned from