hossay commited on
Commit
27791c9
·
1 Parent(s): aa26950

🍻 cheers

Browse files
README.md CHANGED
@@ -24,10 +24,10 @@ model-index:
24
  metrics:
25
  - name: Accuracy
26
  type: accuracy
27
- value: 0.8580527752502275
28
  - name: F1
29
  type: f1
30
- value: 0.8173302107728336
31
  ---
32
 
33
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -37,12 +37,12 @@ should probably proofread and complete it, then remove this comment. -->
37
 
38
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the stool-image dataset.
39
  It achieves the following results on the evaluation set:
40
- - Loss: 0.3669
41
- - Auroc: 0.9121
42
- - Accuracy: 0.8581
43
- - Sensitivity: 0.7756
44
- - Specificty: 0.9153
45
- - F1: 0.8173
46
 
47
  ## Model description
48
 
@@ -67,14 +67,15 @@ The following hyperparameters were used during training:
67
  - seed: 42
68
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
69
  - lr_scheduler_type: linear
70
- - num_epochs: 1
71
  - mixed_precision_training: Native AMP
72
 
73
  ### Training results
74
 
75
  | Training Loss | Epoch | Step | Validation Loss | Auroc | Accuracy | Sensitivity | Specificty | F1 |
76
  |:-------------:|:-----:|:----:|:---------------:|:------:|:--------:|:-----------:|:----------:|:------:|
77
- | 0.4071 | 0.98 | 100 | 0.4415 | 0.8876 | 0.8179 | 0.6629 | 0.9552 | 0.7738 |
 
78
 
79
 
80
  ### Framework versions
 
24
  metrics:
25
  - name: Accuracy
26
  type: accuracy
27
+ value: 0.8589626933575978
28
  - name: F1
29
  type: f1
30
+ value: 0.8116646415552855
31
  ---
32
 
33
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
37
 
38
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the stool-image dataset.
39
  It achieves the following results on the evaluation set:
40
+ - Loss: 0.3651
41
+ - Auroc: 0.9090
42
+ - Accuracy: 0.8590
43
+ - Sensitivity: 0.7422
44
+ - Specificty: 0.9399
45
+ - F1: 0.8117
46
 
47
  ## Model description
48
 
 
67
  - seed: 42
68
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
69
  - lr_scheduler_type: linear
70
+ - num_epochs: 2
71
  - mixed_precision_training: Native AMP
72
 
73
  ### Training results
74
 
75
  | Training Loss | Epoch | Step | Validation Loss | Auroc | Accuracy | Sensitivity | Specificty | F1 |
76
  |:-------------:|:-----:|:----:|:---------------:|:------:|:--------:|:-----------:|:----------:|:------:|
77
+ | 0.3775 | 0.98 | 100 | 0.4743 | 0.9005 | 0.7863 | 0.5899 | 0.9602 | 0.7216 |
78
+ | 0.3238 | 1.96 | 200 | 0.4048 | 0.8973 | 0.8232 | 0.7360 | 0.9005 | 0.7964 |
79
 
80
 
81
  ### Framework versions
all_results.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
- "epoch": 1.0,
3
- "eval_accuracy": 0.8580527752502275,
4
- "eval_auroc": 0.912140044512926,
5
- "eval_f1": 0.8173302107728336,
6
- "eval_loss": 0.366916298866272,
7
- "eval_runtime": 68.1665,
8
- "eval_samples_per_second": 16.122,
9
- "eval_sensitivity": 0.7755555555555556,
10
- "eval_specificty": 0.9152542372881356,
11
- "eval_steps_per_second": 2.024,
12
- "train_loss": 0.4936492688515607,
13
- "train_runtime": 82.0698,
14
- "train_samples_per_second": 19.8,
15
- "train_steps_per_second": 1.243
16
  }
 
1
  {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.8589626933575978,
4
+ "eval_auroc": 0.9090378359869886,
5
+ "eval_f1": 0.8116646415552855,
6
+ "eval_loss": 0.3651178777217865,
7
+ "eval_runtime": 64.3389,
8
+ "eval_samples_per_second": 17.081,
9
+ "eval_sensitivity": 0.7422222222222222,
10
+ "eval_specificty": 0.9399075500770416,
11
+ "eval_steps_per_second": 2.145,
12
+ "train_loss": 0.45571306347846985,
13
+ "train_runtime": 150.3892,
14
+ "train_samples_per_second": 21.611,
15
+ "train_steps_per_second": 1.356
16
  }
config.json CHANGED
@@ -9,15 +9,15 @@
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
11
  "id2label": {
12
- "0": "0",
13
- "1": "1"
14
  },
15
  "image_size": 224,
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
  "label2id": {
19
- "0": "0",
20
- "1": "1"
21
  },
22
  "layer_norm_eps": 1e-12,
23
  "model_type": "vit",
 
9
  "hidden_dropout_prob": 0.0,
10
  "hidden_size": 768,
11
  "id2label": {
12
+ "0": "Normal",
13
+ "1": "Abnormal"
14
  },
15
  "image_size": 224,
16
  "initializer_range": 0.02,
17
  "intermediate_size": 3072,
18
  "label2id": {
19
+ "Abnormal": "1",
20
+ "Normal": "0"
21
  },
22
  "layer_norm_eps": 1e-12,
23
  "model_type": "vit",
eval_results.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "epoch": 1.0,
3
- "eval_accuracy": 0.8580527752502275,
4
- "eval_auroc": 0.912140044512926,
5
- "eval_f1": 0.8173302107728336,
6
- "eval_loss": 0.366916298866272,
7
- "eval_runtime": 68.1665,
8
- "eval_samples_per_second": 16.122,
9
- "eval_sensitivity": 0.7755555555555556,
10
- "eval_specificty": 0.9152542372881356,
11
- "eval_steps_per_second": 2.024
12
  }
 
1
  {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.8589626933575978,
4
+ "eval_auroc": 0.9090378359869886,
5
+ "eval_f1": 0.8116646415552855,
6
+ "eval_loss": 0.3651178777217865,
7
+ "eval_runtime": 64.3389,
8
+ "eval_samples_per_second": 17.081,
9
+ "eval_sensitivity": 0.7422222222222222,
10
+ "eval_specificty": 0.9399075500770416,
11
+ "eval_steps_per_second": 2.145
12
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:67e325baa94230e86d326557616c9574e14bc969ba434562d3a52bc97b6bbe6a
3
  size 343223968
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32661c373043abb2ce39e6889c503c41730dea1672b9a35afda19445c74b08b2
3
  size 343223968
runs/Jan05_17-12-10_DESKTOP-BDBS5RV/events.out.tfevents.1704442481.DESKTOP-BDBS5RV CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a81b132f789c2ad0ed1bbcf06af19bfedcb7cab2578529e47b56f2e50bd6d3ad
3
- size 338
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ededac2b702d6d430eefe8e8ab6e9ca58fe51fa0341336524270417b3ce9357
3
+ size 557
runs/Jan05_17-18-03_DESKTOP-BDBS5RV/events.out.tfevents.1704442683.DESKTOP-BDBS5RV ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:784a82f41f4bf37acf2a9cbe8e17a10399a4dbf719eae862dae5ce406bb0dc4d
3
+ size 5277
runs/Jan05_17-18-52_DESKTOP-BDBS5RV/events.out.tfevents.1704442732.DESKTOP-BDBS5RV ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52867531c97a228c973dcb36485922f8b39689311298cfaa4b423d49bc10bf7b
3
+ size 8853
runs/Jan05_17-18-52_DESKTOP-BDBS5RV/events.out.tfevents.1704442947.DESKTOP-BDBS5RV ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6239e87a7bb3ca5ba9ae979e06daaaabe2a3717fd6757d5bd06120dc7faef59a
3
+ size 40
train_results.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "epoch": 1.0,
3
- "train_loss": 0.4936492688515607,
4
- "train_runtime": 82.0698,
5
- "train_samples_per_second": 19.8,
6
- "train_steps_per_second": 1.243
7
  }
 
1
  {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.45571306347846985,
4
+ "train_runtime": 150.3892,
5
+ "train_samples_per_second": 21.611,
6
+ "train_steps_per_second": 1.356
7
  }
trainer_state.json CHANGED
@@ -1,102 +1,175 @@
1
  {
2
- "best_metric": 0.8875705740958131,
3
  "best_model_checkpoint": "./stool-condition-classification\\checkpoint-100",
4
- "epoch": 1.0,
5
  "eval_steps": 100,
6
- "global_step": 102,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
  "epoch": 0.1,
13
- "learning_rate": 0.0001803921568627451,
14
- "loss": 0.5897,
15
  "step": 10
16
  },
17
  {
18
  "epoch": 0.2,
19
- "learning_rate": 0.00016078431372549022,
20
- "loss": 0.479,
21
  "step": 20
22
  },
23
  {
24
  "epoch": 0.29,
25
- "learning_rate": 0.0001411764705882353,
26
- "loss": 0.5314,
27
  "step": 30
28
  },
29
  {
30
  "epoch": 0.39,
31
- "learning_rate": 0.00012156862745098039,
32
- "loss": 0.5547,
33
  "step": 40
34
  },
35
  {
36
  "epoch": 0.49,
37
- "learning_rate": 0.00010196078431372549,
38
- "loss": 0.4872,
39
  "step": 50
40
  },
41
  {
42
  "epoch": 0.59,
43
- "learning_rate": 8.23529411764706e-05,
44
- "loss": 0.505,
45
  "step": 60
46
  },
47
  {
48
  "epoch": 0.69,
49
- "learning_rate": 6.274509803921569e-05,
50
- "loss": 0.5257,
51
  "step": 70
52
  },
53
  {
54
  "epoch": 0.78,
55
- "learning_rate": 4.313725490196079e-05,
56
- "loss": 0.4404,
57
  "step": 80
58
  },
59
  {
60
  "epoch": 0.88,
61
- "learning_rate": 2.3529411764705884e-05,
62
- "loss": 0.4018,
63
  "step": 90
64
  },
65
  {
66
  "epoch": 0.98,
67
- "learning_rate": 3.92156862745098e-06,
68
- "loss": 0.4071,
69
  "step": 100
70
  },
71
  {
72
  "epoch": 0.98,
73
- "eval_accuracy": 0.8179419525065963,
74
- "eval_auroc": 0.8875705740958131,
75
- "eval_f1": 0.7737704918032786,
76
- "eval_loss": 0.44151929020881653,
77
- "eval_runtime": 19.7299,
78
- "eval_samples_per_second": 19.209,
79
- "eval_sensitivity": 0.6629213483146067,
80
- "eval_specificty": 0.9552238805970149,
81
- "eval_steps_per_second": 2.433,
82
  "step": 100
83
  },
84
  {
85
- "epoch": 1.0,
86
- "step": 102,
87
- "total_flos": 1.25924483123712e+17,
88
- "train_loss": 0.4936492688515607,
89
- "train_runtime": 82.0698,
90
- "train_samples_per_second": 19.8,
91
- "train_steps_per_second": 1.243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  }
93
  ],
94
  "logging_steps": 10,
95
- "max_steps": 102,
96
  "num_input_tokens_seen": 0,
97
- "num_train_epochs": 1,
98
  "save_steps": 100,
99
- "total_flos": 1.25924483123712e+17,
100
  "train_batch_size": 16,
101
  "trial_name": null,
102
  "trial_params": null
 
1
  {
2
+ "best_metric": 0.9004555872323774,
3
  "best_model_checkpoint": "./stool-condition-classification\\checkpoint-100",
4
+ "epoch": 2.0,
5
  "eval_steps": 100,
6
+ "global_step": 204,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
  "log_history": [
11
  {
12
  "epoch": 0.1,
13
+ "learning_rate": 0.00019019607843137254,
14
+ "loss": 0.615,
15
  "step": 10
16
  },
17
  {
18
  "epoch": 0.2,
19
+ "learning_rate": 0.0001803921568627451,
20
+ "loss": 0.527,
21
  "step": 20
22
  },
23
  {
24
  "epoch": 0.29,
25
+ "learning_rate": 0.00017058823529411766,
26
+ "loss": 0.5331,
27
  "step": 30
28
  },
29
  {
30
  "epoch": 0.39,
31
+ "learning_rate": 0.00016078431372549022,
32
+ "loss": 0.5381,
33
  "step": 40
34
  },
35
  {
36
  "epoch": 0.49,
37
+ "learning_rate": 0.00015098039215686275,
38
+ "loss": 0.4821,
39
  "step": 50
40
  },
41
  {
42
  "epoch": 0.59,
43
+ "learning_rate": 0.0001411764705882353,
44
+ "loss": 0.5245,
45
  "step": 60
46
  },
47
  {
48
  "epoch": 0.69,
49
+ "learning_rate": 0.00013137254901960784,
50
+ "loss": 0.5182,
51
  "step": 70
52
  },
53
  {
54
  "epoch": 0.78,
55
+ "learning_rate": 0.00012156862745098039,
56
+ "loss": 0.4576,
57
  "step": 80
58
  },
59
  {
60
  "epoch": 0.88,
61
+ "learning_rate": 0.00011176470588235294,
62
+ "loss": 0.4357,
63
  "step": 90
64
  },
65
  {
66
  "epoch": 0.98,
67
+ "learning_rate": 0.00010196078431372549,
68
+ "loss": 0.3775,
69
  "step": 100
70
  },
71
  {
72
  "epoch": 0.98,
73
+ "eval_accuracy": 0.7862796833773087,
74
+ "eval_auroc": 0.9004555872323774,
75
+ "eval_f1": 0.7216494845360824,
76
+ "eval_loss": 0.4742838144302368,
77
+ "eval_runtime": 18.5519,
78
+ "eval_samples_per_second": 20.429,
79
+ "eval_sensitivity": 0.5898876404494382,
80
+ "eval_specificty": 0.9601990049751243,
81
+ "eval_steps_per_second": 2.587,
82
  "step": 100
83
  },
84
  {
85
+ "epoch": 1.08,
86
+ "learning_rate": 9.215686274509804e-05,
87
+ "loss": 0.5825,
88
+ "step": 110
89
+ },
90
+ {
91
+ "epoch": 1.18,
92
+ "learning_rate": 8.23529411764706e-05,
93
+ "loss": 0.3861,
94
+ "step": 120
95
+ },
96
+ {
97
+ "epoch": 1.27,
98
+ "learning_rate": 7.254901960784314e-05,
99
+ "loss": 0.4775,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 1.37,
104
+ "learning_rate": 6.274509803921569e-05,
105
+ "loss": 0.4094,
106
+ "step": 140
107
+ },
108
+ {
109
+ "epoch": 1.47,
110
+ "learning_rate": 5.294117647058824e-05,
111
+ "loss": 0.4128,
112
+ "step": 150
113
+ },
114
+ {
115
+ "epoch": 1.57,
116
+ "learning_rate": 4.313725490196079e-05,
117
+ "loss": 0.4352,
118
+ "step": 160
119
+ },
120
+ {
121
+ "epoch": 1.67,
122
+ "learning_rate": 3.3333333333333335e-05,
123
+ "loss": 0.4043,
124
+ "step": 170
125
+ },
126
+ {
127
+ "epoch": 1.76,
128
+ "learning_rate": 2.3529411764705884e-05,
129
+ "loss": 0.3687,
130
+ "step": 180
131
+ },
132
+ {
133
+ "epoch": 1.86,
134
+ "learning_rate": 1.3725490196078432e-05,
135
+ "loss": 0.3775,
136
+ "step": 190
137
+ },
138
+ {
139
+ "epoch": 1.96,
140
+ "learning_rate": 3.92156862745098e-06,
141
+ "loss": 0.3238,
142
+ "step": 200
143
+ },
144
+ {
145
+ "epoch": 1.96,
146
+ "eval_accuracy": 0.8232189973614775,
147
+ "eval_auroc": 0.8972832466879087,
148
+ "eval_f1": 0.7963525835866261,
149
+ "eval_loss": 0.4048151969909668,
150
+ "eval_runtime": 18.6017,
151
+ "eval_samples_per_second": 20.374,
152
+ "eval_sensitivity": 0.7359550561797753,
153
+ "eval_specificty": 0.900497512437811,
154
+ "eval_steps_per_second": 2.58,
155
+ "step": 200
156
+ },
157
+ {
158
+ "epoch": 2.0,
159
+ "step": 204,
160
+ "total_flos": 2.51848966247424e+17,
161
+ "train_loss": 0.45571306347846985,
162
+ "train_runtime": 150.3892,
163
+ "train_samples_per_second": 21.611,
164
+ "train_steps_per_second": 1.356
165
  }
166
  ],
167
  "logging_steps": 10,
168
+ "max_steps": 204,
169
  "num_input_tokens_seen": 0,
170
+ "num_train_epochs": 2,
171
  "save_steps": 100,
172
+ "total_flos": 2.51848966247424e+17,
173
  "train_batch_size": 16,
174
  "trial_name": null,
175
  "trial_params": null
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bd4157da5d8d9f13bebf7070514c0e1f61d4b4e845588f68818e3014effdf48d
3
  size 4283
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc54caf773d8dfee9791bdd5766a05bc8c92e8f4edfbd648c35360165e253b04
3
  size 4283