amjadfqs commited on
Commit
d7713b9
1 Parent(s): a206e5c

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_12
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.9736842105263158
26
+ - name: Precision
27
+ type: precision
28
+ value: 0.973953427126813
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_12
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.0923
39
+ - Accuracy: 0.9737
40
+ - F1 Score: 0.9737
41
+ - Precision: 0.9740
42
+ - Sensitivity: 0.9738
43
+ - Specificity: 0.9934
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: 64
64
+ - eval_batch_size: 64
65
+ - seed: 42
66
+ - gradient_accumulation_steps: 4
67
+ - total_train_batch_size: 256
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
+ | 0.3644 | 1.0 | 30 | 0.2918 | 0.8955 | 0.8974 | 0.9070 | 0.8957 | 0.9734 |
78
+ | 0.2177 | 2.0 | 60 | 0.2319 | 0.9152 | 0.9155 | 0.9237 | 0.9156 | 0.9786 |
79
+ | 0.1171 | 3.0 | 90 | 0.1654 | 0.9489 | 0.9494 | 0.9532 | 0.9492 | 0.9872 |
80
+ | 0.068 | 4.0 | 120 | 0.1600 | 0.9450 | 0.9451 | 0.9466 | 0.9455 | 0.9861 |
81
+ | 0.0499 | 5.0 | 150 | 0.0947 | 0.9654 | 0.9656 | 0.9656 | 0.9657 | 0.9913 |
82
+ | 0.0302 | 6.0 | 180 | 0.0882 | 0.9713 | 0.9714 | 0.9715 | 0.9715 | 0.9928 |
83
+ | 0.0207 | 7.0 | 210 | 0.1002 | 0.9698 | 0.9699 | 0.9708 | 0.9699 | 0.9924 |
84
+ | 0.0205 | 8.0 | 240 | 0.1550 | 0.9525 | 0.9521 | 0.9544 | 0.9529 | 0.9881 |
85
+ | 0.0163 | 9.0 | 270 | 0.0789 | 0.9760 | 0.9761 | 0.9762 | 0.9762 | 0.9940 |
86
+ | 0.0181 | 10.0 | 300 | 0.0923 | 0.9737 | 0.9737 | 0.9740 | 0.9738 | 0.9934 |
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