AMfeta99 commited on
Commit
d2e026b
1 Parent(s): 736d2da

Model save

Browse files
README.md CHANGED
@@ -2,7 +2,6 @@
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
5
- - image-classification
6
  - generated_from_trainer
7
  datasets:
8
  - imagefolder
@@ -18,7 +17,7 @@ model-index:
18
  name: Image Classification
19
  type: image-classification
20
  dataset:
21
- name: Mahadih534/brain-tumor-dataset
22
  type: imagefolder
23
  config: default
24
  split: train
@@ -26,16 +25,16 @@ model-index:
26
  metrics:
27
  - name: Accuracy
28
  type: accuracy
29
- value: 0.7692307692307693
30
  - name: Precision
31
  type: precision
32
- value: 0.7692307692307693
33
  - name: Recall
34
  type: recall
35
- value: 0.7692307692307693
36
  - name: F1
37
  type: f1
38
- value: 0.7692307692307693
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -43,13 +42,13 @@ should probably proofread and complete it, then remove this comment. -->
43
 
44
  # vit-base-oxford-brain-tumor_x-ray
45
 
46
- This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the Mahadih534/brain-tumor-dataset dataset.
47
  It achieves the following results on the evaluation set:
48
- - Loss: 0.5912
49
- - Accuracy: 0.7692
50
- - Precision: 0.7692
51
- - Recall: 0.7692
52
- - F1: 0.7692
53
 
54
  ## Model description
55
 
@@ -74,22 +73,21 @@ The following hyperparameters were used during training:
74
  - seed: 42
75
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
76
  - lr_scheduler_type: linear
77
- - num_epochs: 5
78
 
79
  ### Training results
80
 
81
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
82
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
83
- | 0.6752 | 1.0 | 11 | 0.4894 | 0.76 | 0.7148 | 0.76 | 0.7114 |
84
- | 0.5673 | 2.0 | 22 | 0.4630 | 0.72 | 0.57 | 0.72 | 0.6363 |
85
- | 0.6173 | 3.0 | 33 | 0.4269 | 0.92 | 0.92 | 0.92 | 0.92 |
86
- | 0.5562 | 4.0 | 44 | 0.5047 | 0.84 | 0.8653 | 0.84 | 0.8470 |
87
- | 0.5285 | 5.0 | 55 | 0.4036 | 0.92 | 0.92 | 0.92 | 0.92 |
88
 
89
 
90
  ### Framework versions
91
 
92
  - Transformers 4.41.2
93
  - Pytorch 2.3.0+cu121
94
- - Datasets 2.19.2
95
  - Tokenizers 0.19.1
 
2
  license: apache-2.0
3
  base_model: google/vit-base-patch16-224
4
  tags:
 
5
  - generated_from_trainer
6
  datasets:
7
  - imagefolder
 
17
  name: Image Classification
18
  type: image-classification
19
  dataset:
20
+ name: imagefolder
21
  type: imagefolder
22
  config: default
23
  split: train
 
25
  metrics:
26
  - name: Accuracy
27
  type: accuracy
28
+ value: 0.9230769230769231
29
  - name: Precision
30
  type: precision
31
+ value: 0.9230769230769231
32
  - name: Recall
33
  type: recall
34
+ value: 0.9230769230769231
35
  - name: F1
36
  type: f1
37
+ value: 0.9230769230769231
38
  ---
39
 
40
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
42
 
43
  # vit-base-oxford-brain-tumor_x-ray
44
 
45
+ This model is a fine-tuned version of [google/vit-base-patch16-224](https://huggingface.co/google/vit-base-patch16-224) on the imagefolder dataset.
46
  It achieves the following results on the evaluation set:
47
+ - Loss: 0.2882
48
+ - Accuracy: 0.9231
49
+ - Precision: 0.9231
50
+ - Recall: 0.9231
51
+ - F1: 0.9231
52
 
53
  ## Model description
54
 
 
73
  - seed: 42
74
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
75
  - lr_scheduler_type: linear
76
+ - num_epochs: 4
77
 
78
  ### Training results
79
 
80
  | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
81
  |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:------:|:------:|
82
+ | 0.6519 | 1.0 | 11 | 0.3817 | 0.8 | 0.8476 | 0.8 | 0.7751 |
83
+ | 0.2616 | 2.0 | 22 | 0.0675 | 0.96 | 0.9624 | 0.96 | 0.9594 |
84
+ | 0.1219 | 3.0 | 33 | 0.1770 | 0.92 | 0.9289 | 0.92 | 0.9174 |
85
+ | 0.0527 | 4.0 | 44 | 0.0234 | 1.0 | 1.0 | 1.0 | 1.0 |
 
86
 
87
 
88
  ### Framework versions
89
 
90
  - Transformers 4.41.2
91
  - Pytorch 2.3.0+cu121
92
+ - Datasets 2.20.0
93
  - Tokenizers 0.19.1
runs/Jun18_14-46-45_f111979319ff/events.out.tfevents.1718723911.f111979319ff.190.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2359ed144a64521ee04ddff253df334394da94f3f604b0678972f72c3da852b5
3
+ size 551