Aman commited on
Commit
d257f5b
·
1 Parent(s): d7daeea

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -22
README.md CHANGED
@@ -22,18 +22,30 @@ model-index:
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
- value: 0.5
 
 
 
 
 
 
 
 
 
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
29
  should probably proofread and complete it, then remove this comment. -->
30
 
31
- # swin-tiny-patch4-window7-224-finetuned-brain-ich
32
 
33
- This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on the imagefolder dataset.
34
  It achieves the following results on the evaluation set:
35
- - Loss: 1.5829
36
- - Accuracy: 0.5
 
 
 
37
 
38
  ## Model description
39
 
@@ -61,27 +73,20 @@ The following hyperparameters were used during training:
61
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
  - lr_scheduler_type: linear
63
  - lr_scheduler_warmup_ratio: 0.1
64
- - num_epochs: 10
65
 
66
  ### Training results
67
 
68
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
69
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
70
- | No log | 1.0 | 1 | 1.6744 | 0.3571 |
71
- | No log | 2.0 | 2 | 1.7141 | 0.2857 |
72
- | No log | 3.0 | 3 | 1.7561 | 0.2857 |
73
- | No log | 4.0 | 4 | 1.7594 | 0.3571 |
74
- | No log | 5.0 | 5 | 1.7200 | 0.3571 |
75
- | No log | 6.0 | 6 | 1.6617 | 0.3571 |
76
- | No log | 7.0 | 7 | 1.6157 | 0.3571 |
77
- | No log | 8.0 | 8 | 1.5829 | 0.5 |
78
- | No log | 9.0 | 9 | 1.5618 | 0.5 |
79
- | 1.5896 | 10.0 | 10 | 1.5522 | 0.5 |
80
 
81
 
82
  ### Framework versions
83
 
84
- - Transformers 4.35.2
85
- - Pytorch 2.1.0+cu121
86
- - Datasets 2.16.0
87
- - Tokenizers 0.15.0
 
22
  metrics:
23
  - name: Accuracy
24
  type: accuracy
25
+ value: 0.9960906958561376
26
+ - name: F1
27
+ type: f1
28
+ value: 0.9960906958561376
29
+ - name: Recall
30
+ type: recall
31
+ value: 0.9960906958561376
32
+ - name: Precision
33
+ type: precision
34
+ value: 0.9960906958561376
35
  ---
36
 
37
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
38
  should probably proofread and complete it, then remove this comment. -->
39
 
40
+ # Brain_Tumor_Classification_using_swin
41
 
42
+ 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.
43
  It achieves the following results on the evaluation set:
44
+ - Loss: 0.0123
45
+ - Accuracy: 0.9961
46
+ - F1: 0.9961
47
+ - Recall: 0.9961
48
+ - Precision: 0.9961
49
 
50
  ## Model description
51
 
 
73
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
74
  - lr_scheduler_type: linear
75
  - lr_scheduler_warmup_ratio: 0.1
76
+ - num_epochs: 3
77
 
78
  ### Training results
79
 
80
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
81
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
82
+ | 0.1234 | 1.0 | 180 | 0.0450 | 0.9840 | 0.9840 | 0.9840 | 0.9840 |
83
+ | 0.0837 | 2.0 | 360 | 0.0198 | 0.9926 | 0.9926 | 0.9926 | 0.9926 |
84
+ | 0.0373 | 3.0 | 540 | 0.0123 | 0.9961 | 0.9961 | 0.9961 | 0.9961 |
 
 
 
 
 
 
 
85
 
86
 
87
  ### Framework versions
88
 
89
+ - Transformers 4.23.1
90
+ - Pytorch 1.13.0
91
+ - Datasets 2.6.1
92
+ - Tokenizers 0.13.1