🍻 cheers
Browse files- README.md +11 -10
- all_results.json +14 -14
- config.json +4 -4
- eval_results.json +10 -10
- model.safetensors +1 -1
- runs/Jan05_17-12-10_DESKTOP-BDBS5RV/events.out.tfevents.1704442481.DESKTOP-BDBS5RV +2 -2
- runs/Jan05_17-18-03_DESKTOP-BDBS5RV/events.out.tfevents.1704442683.DESKTOP-BDBS5RV +3 -0
- runs/Jan05_17-18-52_DESKTOP-BDBS5RV/events.out.tfevents.1704442732.DESKTOP-BDBS5RV +3 -0
- runs/Jan05_17-18-52_DESKTOP-BDBS5RV/events.out.tfevents.1704442947.DESKTOP-BDBS5RV +3 -0
- train_results.json +5 -5
- trainer_state.json +115 -42
- training_args.bin +1 -1
README.md
CHANGED
@@ -24,10 +24,10 @@ model-index:
|
|
24 |
metrics:
|
25 |
- name: Accuracy
|
26 |
type: accuracy
|
27 |
-
value: 0.
|
28 |
- name: F1
|
29 |
type: f1
|
30 |
-
value: 0.
|
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.
|
41 |
-
- Auroc: 0.
|
42 |
-
- Accuracy: 0.
|
43 |
-
- Sensitivity: 0.
|
44 |
-
- Specificty: 0.
|
45 |
-
- F1: 0.
|
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:
|
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.
|
|
|
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":
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_auroc": 0.
|
5 |
-
"eval_f1": 0.
|
6 |
-
"eval_loss": 0.
|
7 |
-
"eval_runtime":
|
8 |
-
"eval_samples_per_second":
|
9 |
-
"eval_sensitivity": 0.
|
10 |
-
"eval_specificty": 0.
|
11 |
-
"eval_steps_per_second": 2.
|
12 |
-
"train_loss": 0.
|
13 |
-
"train_runtime":
|
14 |
-
"train_samples_per_second":
|
15 |
-
"train_steps_per_second": 1.
|
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": "
|
13 |
-
"1": "
|
14 |
},
|
15 |
"image_size": 224,
|
16 |
"initializer_range": 0.02,
|
17 |
"intermediate_size": 3072,
|
18 |
"label2id": {
|
19 |
-
"
|
20 |
-
"
|
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":
|
3 |
-
"eval_accuracy": 0.
|
4 |
-
"eval_auroc": 0.
|
5 |
-
"eval_f1": 0.
|
6 |
-
"eval_loss": 0.
|
7 |
-
"eval_runtime":
|
8 |
-
"eval_samples_per_second":
|
9 |
-
"eval_sensitivity": 0.
|
10 |
-
"eval_specificty": 0.
|
11 |
-
"eval_steps_per_second": 2.
|
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:
|
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:
|
3 |
-
size
|
|
|
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":
|
3 |
-
"train_loss": 0.
|
4 |
-
"train_runtime":
|
5 |
-
"train_samples_per_second":
|
6 |
-
"train_steps_per_second": 1.
|
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.
|
3 |
"best_model_checkpoint": "./stool-condition-classification\\checkpoint-100",
|
4 |
-
"epoch":
|
5 |
"eval_steps": 100,
|
6 |
-
"global_step":
|
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.
|
14 |
-
"loss": 0.
|
15 |
"step": 10
|
16 |
},
|
17 |
{
|
18 |
"epoch": 0.2,
|
19 |
-
"learning_rate": 0.
|
20 |
-
"loss": 0.
|
21 |
"step": 20
|
22 |
},
|
23 |
{
|
24 |
"epoch": 0.29,
|
25 |
-
"learning_rate": 0.
|
26 |
-
"loss": 0.
|
27 |
"step": 30
|
28 |
},
|
29 |
{
|
30 |
"epoch": 0.39,
|
31 |
-
"learning_rate": 0.
|
32 |
-
"loss": 0.
|
33 |
"step": 40
|
34 |
},
|
35 |
{
|
36 |
"epoch": 0.49,
|
37 |
-
"learning_rate": 0.
|
38 |
-
"loss": 0.
|
39 |
"step": 50
|
40 |
},
|
41 |
{
|
42 |
"epoch": 0.59,
|
43 |
-
"learning_rate":
|
44 |
-
"loss": 0.
|
45 |
"step": 60
|
46 |
},
|
47 |
{
|
48 |
"epoch": 0.69,
|
49 |
-
"learning_rate":
|
50 |
-
"loss": 0.
|
51 |
"step": 70
|
52 |
},
|
53 |
{
|
54 |
"epoch": 0.78,
|
55 |
-
"learning_rate":
|
56 |
-
"loss": 0.
|
57 |
"step": 80
|
58 |
},
|
59 |
{
|
60 |
"epoch": 0.88,
|
61 |
-
"learning_rate":
|
62 |
-
"loss": 0.
|
63 |
"step": 90
|
64 |
},
|
65 |
{
|
66 |
"epoch": 0.98,
|
67 |
-
"learning_rate":
|
68 |
-
"loss": 0.
|
69 |
"step": 100
|
70 |
},
|
71 |
{
|
72 |
"epoch": 0.98,
|
73 |
-
"eval_accuracy": 0.
|
74 |
-
"eval_auroc": 0.
|
75 |
-
"eval_f1": 0.
|
76 |
-
"eval_loss": 0.
|
77 |
-
"eval_runtime":
|
78 |
-
"eval_samples_per_second":
|
79 |
-
"eval_sensitivity": 0.
|
80 |
-
"eval_specificty": 0.
|
81 |
-
"eval_steps_per_second": 2.
|
82 |
"step": 100
|
83 |
},
|
84 |
{
|
85 |
-
"epoch": 1.
|
86 |
-
"
|
87 |
-
"
|
88 |
-
"
|
89 |
-
|
90 |
-
|
91 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
93 |
],
|
94 |
"logging_steps": 10,
|
95 |
-
"max_steps":
|
96 |
"num_input_tokens_seen": 0,
|
97 |
-
"num_train_epochs":
|
98 |
"save_steps": 100,
|
99 |
-
"total_flos":
|
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:
|
3 |
size 4283
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc54caf773d8dfee9791bdd5766a05bc8c92e8f4edfbd648c35360165e253b04
|
3 |
size 4283
|