amjadfqs commited on
Commit
0456d9a
1 Parent(s): 458cf29

update model card README.md

Browse files
Files changed (1) hide show
  1. README.md +94 -0
README.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - imagefolder
7
+ metrics:
8
+ - accuracy
9
+ - precision
10
+ model-index:
11
+ - name: swin-base-patch4-window7-224-in22k-finetuned-brain-tumor-final_10
12
+ results:
13
+ - task:
14
+ name: Image Classification
15
+ type: image-classification
16
+ dataset:
17
+ name: imagefolder
18
+ type: imagefolder
19
+ config: default
20
+ split: train
21
+ args: default
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.9359780047132757
26
+ - name: Precision
27
+ type: precision
28
+ value: 0.9436683740999858
29
+ ---
30
+
31
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
32
+ should probably proofread and complete it, then remove this comment. -->
33
+
34
+ # swin-base-patch4-window7-224-in22k-finetuned-brain-tumor-final_10
35
+
36
+ This model is a fine-tuned version of [microsoft/swin-base-patch4-window7-224-in22k](https://huggingface.co/microsoft/swin-base-patch4-window7-224-in22k) on the imagefolder dataset.
37
+ It achieves the following results on the evaluation set:
38
+ - Loss: 0.2116
39
+ - Accuracy: 0.9360
40
+ - F1 Score: 0.9374
41
+ - Precision: 0.9437
42
+ - Sensitivity: 0.9372
43
+ - Specificity: 0.9839
44
+
45
+ ## Model description
46
+
47
+ More information needed
48
+
49
+ ## Intended uses & limitations
50
+
51
+ More information needed
52
+
53
+ ## Training and evaluation data
54
+
55
+ More information needed
56
+
57
+ ## Training procedure
58
+
59
+ ### Training hyperparameters
60
+
61
+ The following hyperparameters were used during training:
62
+ - learning_rate: 0.0001
63
+ - train_batch_size: 100
64
+ - eval_batch_size: 100
65
+ - seed: 42
66
+ - gradient_accumulation_steps: 4
67
+ - total_train_batch_size: 400
68
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
69
+ - lr_scheduler_type: linear
70
+ - lr_scheduler_warmup_ratio: 0.1
71
+ - num_epochs: 10
72
+
73
+ ### Training results
74
+
75
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score | Precision | Sensitivity | Specificity |
76
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|:---------:|:-----------:|:-----------:|
77
+ | 1.3428 | 0.99 | 19 | 0.7059 | 0.7467 | 0.7535 | 0.7951 | 0.7464 | 0.9332 |
78
+ | 0.3308 | 1.97 | 38 | 0.2314 | 0.9183 | 0.9194 | 0.9239 | 0.9191 | 0.9792 |
79
+ | 0.1601 | 2.96 | 57 | 0.2024 | 0.9305 | 0.9314 | 0.9349 | 0.9306 | 0.9824 |
80
+ | 0.0976 | 4.0 | 77 | 0.3376 | 0.8904 | 0.8943 | 0.9126 | 0.8930 | 0.9724 |
81
+ | 0.0585 | 4.99 | 96 | 0.3893 | 0.8830 | 0.8853 | 0.9115 | 0.8854 | 0.9706 |
82
+ | 0.0432 | 5.97 | 115 | 0.2559 | 0.9214 | 0.9239 | 0.9330 | 0.9237 | 0.9802 |
83
+ | 0.0313 | 6.96 | 134 | 0.2175 | 0.9375 | 0.9383 | 0.9451 | 0.9381 | 0.9843 |
84
+ | 0.0176 | 8.0 | 154 | 0.2309 | 0.9313 | 0.9326 | 0.9386 | 0.9320 | 0.9827 |
85
+ | 0.0152 | 8.99 | 173 | 0.2358 | 0.9328 | 0.9339 | 0.9416 | 0.9336 | 0.9831 |
86
+ | 0.0089 | 9.87 | 190 | 0.2116 | 0.9360 | 0.9374 | 0.9437 | 0.9372 | 0.9839 |
87
+
88
+
89
+ ### Framework versions
90
+
91
+ - Transformers 4.29.2
92
+ - Pytorch 2.0.1+cu117
93
+ - Datasets 2.12.0
94
+ - Tokenizers 0.13.3