heyitsjearbear
commited on
Commit
•
583c0d5
1
Parent(s):
91e4067
Upload folder using huggingface_hub (#6)
Browse files- Upload folder using huggingface_hub (bf42622586506ccf637a4095ecc1c9e858c19d08)
- all_results.json +8 -0
- checkpoint-160/config.json +32 -0
- checkpoint-160/model.safetensors +3 -0
- checkpoint-160/optimizer.pt +3 -0
- checkpoint-160/preprocessor_config.json +36 -0
- checkpoint-160/rng_state.pth +3 -0
- checkpoint-160/scheduler.pt +3 -0
- checkpoint-160/trainer_state.json +169 -0
- checkpoint-160/training_args.bin +3 -0
- checkpoint-40/config.json +32 -0
- checkpoint-40/model.safetensors +3 -0
- checkpoint-40/optimizer.pt +3 -0
- checkpoint-40/preprocessor_config.json +36 -0
- checkpoint-40/rng_state.pth +3 -0
- checkpoint-40/scheduler.pt +3 -0
- checkpoint-40/trainer_state.json +58 -0
- checkpoint-40/training_args.bin +3 -0
- config.json +32 -0
- model.safetensors +3 -0
- preprocessor_config.json +36 -0
- train_results.json +8 -0
- trainer_state.json +125 -0
- training_args.bin +3 -0
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 22.0,
|
3 |
+
"total_flos": 1.2615695909255578e+17,
|
4 |
+
"train_loss": 0.04397649819200689,
|
5 |
+
"train_runtime": 84.5517,
|
6 |
+
"train_samples_per_second": 19.254,
|
7 |
+
"train_steps_per_second": 1.301
|
8 |
+
}
|
checkpoint-160/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "mold",
|
13 |
+
"1": "non-mold"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"mold": "0",
|
20 |
+
"non-mold": "1"
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.40.1"
|
32 |
+
}
|
checkpoint-160/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2dec449c03a6a4a335f6706b8121a11f67349c62f865dc61bebeab88fcc1f9d
|
3 |
+
size 343223968
|
checkpoint-160/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c5058d92612251a9c59fb5caa74cdf04a9cf374e124467191f87f6175c4207b
|
3 |
+
size 686568890
|
checkpoint-160/preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTFeatureExtractor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
checkpoint-160/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f86f749dc73bc16a2502fef2f98f5c00b4400cb2c67fbe62653b7ed104d13779
|
3 |
+
size 14244
|
checkpoint-160/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec82b88d9fc1851330cce56bddf8838806450e0dcb4ecdc26493c05dc810338d
|
3 |
+
size 1064
|
checkpoint-160/trainer_state.json
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.018665345385670662,
|
3 |
+
"best_model_checkpoint": "./vit-strawberries/checkpoint-120",
|
4 |
+
"epoch": 32.0,
|
5 |
+
"eval_steps": 40,
|
6 |
+
"global_step": 160,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 2.0,
|
13 |
+
"grad_norm": 0.6030758023262024,
|
14 |
+
"learning_rate": 0.0001875,
|
15 |
+
"loss": 0.3813,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 4.0,
|
20 |
+
"grad_norm": 0.19357694685459137,
|
21 |
+
"learning_rate": 0.000175,
|
22 |
+
"loss": 0.0627,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 6.0,
|
27 |
+
"grad_norm": 0.09823369234800339,
|
28 |
+
"learning_rate": 0.00016250000000000002,
|
29 |
+
"loss": 0.0166,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 8.0,
|
34 |
+
"grad_norm": 0.06956500560045242,
|
35 |
+
"learning_rate": 0.00015000000000000001,
|
36 |
+
"loss": 0.0102,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 8.0,
|
41 |
+
"eval_accuracy": 1.0,
|
42 |
+
"eval_loss": 0.021412454545497894,
|
43 |
+
"eval_runtime": 0.4006,
|
44 |
+
"eval_samples_per_second": 64.901,
|
45 |
+
"eval_steps_per_second": 9.985,
|
46 |
+
"step": 40
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 10.0,
|
50 |
+
"grad_norm": 0.059710320085287094,
|
51 |
+
"learning_rate": 0.0001375,
|
52 |
+
"loss": 0.0078,
|
53 |
+
"step": 50
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 12.0,
|
57 |
+
"grad_norm": 0.04971468821167946,
|
58 |
+
"learning_rate": 0.000125,
|
59 |
+
"loss": 0.0065,
|
60 |
+
"step": 60
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 14.0,
|
64 |
+
"grad_norm": 0.044971030205488205,
|
65 |
+
"learning_rate": 0.00011250000000000001,
|
66 |
+
"loss": 0.0058,
|
67 |
+
"step": 70
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"epoch": 16.0,
|
71 |
+
"grad_norm": 0.04283370077610016,
|
72 |
+
"learning_rate": 0.0001,
|
73 |
+
"loss": 0.0052,
|
74 |
+
"step": 80
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 16.0,
|
78 |
+
"eval_accuracy": 1.0,
|
79 |
+
"eval_loss": 0.019078843295574188,
|
80 |
+
"eval_runtime": 0.4188,
|
81 |
+
"eval_samples_per_second": 62.087,
|
82 |
+
"eval_steps_per_second": 9.552,
|
83 |
+
"step": 80
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 18.0,
|
87 |
+
"grad_norm": 0.03907443583011627,
|
88 |
+
"learning_rate": 8.75e-05,
|
89 |
+
"loss": 0.0048,
|
90 |
+
"step": 90
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"epoch": 20.0,
|
94 |
+
"grad_norm": 0.03701604902744293,
|
95 |
+
"learning_rate": 7.500000000000001e-05,
|
96 |
+
"loss": 0.0045,
|
97 |
+
"step": 100
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 22.0,
|
101 |
+
"grad_norm": 0.03528870269656181,
|
102 |
+
"learning_rate": 6.25e-05,
|
103 |
+
"loss": 0.0043,
|
104 |
+
"step": 110
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 24.0,
|
108 |
+
"grad_norm": 0.033964332193136215,
|
109 |
+
"learning_rate": 5e-05,
|
110 |
+
"loss": 0.0041,
|
111 |
+
"step": 120
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 24.0,
|
115 |
+
"eval_accuracy": 1.0,
|
116 |
+
"eval_loss": 0.018665345385670662,
|
117 |
+
"eval_runtime": 0.4061,
|
118 |
+
"eval_samples_per_second": 64.02,
|
119 |
+
"eval_steps_per_second": 9.849,
|
120 |
+
"step": 120
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"epoch": 26.0,
|
124 |
+
"grad_norm": 0.03315058350563049,
|
125 |
+
"learning_rate": 3.7500000000000003e-05,
|
126 |
+
"loss": 0.004,
|
127 |
+
"step": 130
|
128 |
+
},
|
129 |
+
{
|
130 |
+
"epoch": 28.0,
|
131 |
+
"grad_norm": 0.031990278512239456,
|
132 |
+
"learning_rate": 2.5e-05,
|
133 |
+
"loss": 0.0039,
|
134 |
+
"step": 140
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"epoch": 30.0,
|
138 |
+
"grad_norm": 0.031738851219415665,
|
139 |
+
"learning_rate": 1.25e-05,
|
140 |
+
"loss": 0.0038,
|
141 |
+
"step": 150
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"epoch": 32.0,
|
145 |
+
"grad_norm": 0.03203798457980156,
|
146 |
+
"learning_rate": 0.0,
|
147 |
+
"loss": 0.0038,
|
148 |
+
"step": 160
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"epoch": 32.0,
|
152 |
+
"eval_accuracy": 1.0,
|
153 |
+
"eval_loss": 0.01877218298614025,
|
154 |
+
"eval_runtime": 0.485,
|
155 |
+
"eval_samples_per_second": 53.611,
|
156 |
+
"eval_steps_per_second": 8.248,
|
157 |
+
"step": 160
|
158 |
+
}
|
159 |
+
],
|
160 |
+
"logging_steps": 10,
|
161 |
+
"max_steps": 160,
|
162 |
+
"num_input_tokens_seen": 0,
|
163 |
+
"num_train_epochs": 32,
|
164 |
+
"save_steps": 40,
|
165 |
+
"total_flos": 1.8350103140735386e+17,
|
166 |
+
"train_batch_size": 16,
|
167 |
+
"trial_name": null,
|
168 |
+
"trial_params": null
|
169 |
+
}
|
checkpoint-160/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:deb496ae4ef9baef4da454a5aeb81107fc1c8c5186e0e0e4558b603478a5db94
|
3 |
+
size 4984
|
checkpoint-40/config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "mold",
|
13 |
+
"1": "non-mold"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"mold": "0",
|
20 |
+
"non-mold": "1"
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.40.1"
|
32 |
+
}
|
checkpoint-40/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb420995dc8be7c272dadcd477dedb06052fd58a346e130d03ff45f4c1c91771
|
3 |
+
size 343223968
|
checkpoint-40/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:358f9b33732a7d412948bf0cf3da9233eb8df30982b22bc31c74407deeaf386e
|
3 |
+
size 686568890
|
checkpoint-40/preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTFeatureExtractor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
checkpoint-40/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:48ee9b73399c28d7e668360bf1d5a4d11095c4738bf96c13f7bb6fbff59f8ccb
|
3 |
+
size 14244
|
checkpoint-40/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fc50aee520433cf5ed68f3911fe02fa94186318c9e0ea67084b2aceb7a1eaa20
|
3 |
+
size 1064
|
checkpoint-40/trainer_state.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.08537869900465012,
|
3 |
+
"best_model_checkpoint": "./vit-strawberries/checkpoint-40",
|
4 |
+
"epoch": 8.0,
|
5 |
+
"eval_steps": 40,
|
6 |
+
"global_step": 40,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 2.0,
|
13 |
+
"grad_norm": 0.6375295519828796,
|
14 |
+
"learning_rate": 0.00018181818181818183,
|
15 |
+
"loss": 0.3845,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 4.0,
|
20 |
+
"grad_norm": 0.1383754014968872,
|
21 |
+
"learning_rate": 0.00016363636363636366,
|
22 |
+
"loss": 0.0393,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 6.0,
|
27 |
+
"grad_norm": 0.08163678646087646,
|
28 |
+
"learning_rate": 0.00014545454545454546,
|
29 |
+
"loss": 0.0128,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 8.0,
|
34 |
+
"grad_norm": 0.06157604977488518,
|
35 |
+
"learning_rate": 0.00012727272727272728,
|
36 |
+
"loss": 0.0087,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 8.0,
|
41 |
+
"eval_accuracy": 0.9230769230769231,
|
42 |
+
"eval_loss": 0.08537869900465012,
|
43 |
+
"eval_runtime": 0.4612,
|
44 |
+
"eval_samples_per_second": 56.375,
|
45 |
+
"eval_steps_per_second": 8.673,
|
46 |
+
"step": 40
|
47 |
+
}
|
48 |
+
],
|
49 |
+
"logging_steps": 10,
|
50 |
+
"max_steps": 110,
|
51 |
+
"num_input_tokens_seen": 0,
|
52 |
+
"num_train_epochs": 22,
|
53 |
+
"save_steps": 40,
|
54 |
+
"total_flos": 4.587525785183846e+16,
|
55 |
+
"train_batch_size": 16,
|
56 |
+
"trial_name": null,
|
57 |
+
"trial_params": null
|
58 |
+
}
|
checkpoint-40/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bab60cc9e62a612ea5adfddbcae3b3d445ad2a66cf5b8c39079230d5655ada3a
|
3 |
+
size 4984
|
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "mold",
|
13 |
+
"1": "non-mold"
|
14 |
+
},
|
15 |
+
"image_size": 224,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"label2id": {
|
19 |
+
"mold": "0",
|
20 |
+
"non-mold": "1"
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-12,
|
23 |
+
"model_type": "vit",
|
24 |
+
"num_attention_heads": 12,
|
25 |
+
"num_channels": 3,
|
26 |
+
"num_hidden_layers": 12,
|
27 |
+
"patch_size": 16,
|
28 |
+
"problem_type": "single_label_classification",
|
29 |
+
"qkv_bias": true,
|
30 |
+
"torch_dtype": "float32",
|
31 |
+
"transformers_version": "4.40.1"
|
32 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb420995dc8be7c272dadcd477dedb06052fd58a346e130d03ff45f4c1c91771
|
3 |
+
size 343223968
|
preprocessor_config.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"images",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_rescale",
|
8 |
+
"rescale_factor",
|
9 |
+
"do_normalize",
|
10 |
+
"image_mean",
|
11 |
+
"image_std",
|
12 |
+
"return_tensors",
|
13 |
+
"data_format",
|
14 |
+
"input_data_format"
|
15 |
+
],
|
16 |
+
"do_normalize": true,
|
17 |
+
"do_rescale": true,
|
18 |
+
"do_resize": true,
|
19 |
+
"image_mean": [
|
20 |
+
0.5,
|
21 |
+
0.5,
|
22 |
+
0.5
|
23 |
+
],
|
24 |
+
"image_processor_type": "ViTFeatureExtractor",
|
25 |
+
"image_std": [
|
26 |
+
0.5,
|
27 |
+
0.5,
|
28 |
+
0.5
|
29 |
+
],
|
30 |
+
"resample": 2,
|
31 |
+
"rescale_factor": 0.00392156862745098,
|
32 |
+
"size": {
|
33 |
+
"height": 224,
|
34 |
+
"width": 224
|
35 |
+
}
|
36 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 22.0,
|
3 |
+
"total_flos": 1.2615695909255578e+17,
|
4 |
+
"train_loss": 0.04397649819200689,
|
5 |
+
"train_runtime": 84.5517,
|
6 |
+
"train_samples_per_second": 19.254,
|
7 |
+
"train_steps_per_second": 1.301
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.08537869900465012,
|
3 |
+
"best_model_checkpoint": "./vit-strawberries/checkpoint-40",
|
4 |
+
"epoch": 22.0,
|
5 |
+
"eval_steps": 40,
|
6 |
+
"global_step": 110,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 2.0,
|
13 |
+
"grad_norm": 0.6375295519828796,
|
14 |
+
"learning_rate": 0.00018181818181818183,
|
15 |
+
"loss": 0.3845,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 4.0,
|
20 |
+
"grad_norm": 0.1383754014968872,
|
21 |
+
"learning_rate": 0.00016363636363636366,
|
22 |
+
"loss": 0.0393,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 6.0,
|
27 |
+
"grad_norm": 0.08163678646087646,
|
28 |
+
"learning_rate": 0.00014545454545454546,
|
29 |
+
"loss": 0.0128,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 8.0,
|
34 |
+
"grad_norm": 0.06157604977488518,
|
35 |
+
"learning_rate": 0.00012727272727272728,
|
36 |
+
"loss": 0.0087,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 8.0,
|
41 |
+
"eval_accuracy": 0.9230769230769231,
|
42 |
+
"eval_loss": 0.08537869900465012,
|
43 |
+
"eval_runtime": 0.4612,
|
44 |
+
"eval_samples_per_second": 56.375,
|
45 |
+
"eval_steps_per_second": 8.673,
|
46 |
+
"step": 40
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 10.0,
|
50 |
+
"grad_norm": 0.05511847883462906,
|
51 |
+
"learning_rate": 0.00010909090909090909,
|
52 |
+
"loss": 0.007,
|
53 |
+
"step": 50
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 12.0,
|
57 |
+
"grad_norm": 0.047300320118665695,
|
58 |
+
"learning_rate": 9.090909090909092e-05,
|
59 |
+
"loss": 0.0061,
|
60 |
+
"step": 60
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 14.0,
|
64 |
+
"grad_norm": 0.044113993644714355,
|
65 |
+
"learning_rate": 7.272727272727273e-05,
|
66 |
+
"loss": 0.0056,
|
67 |
+
"step": 70
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"epoch": 16.0,
|
71 |
+
"grad_norm": 0.043533895164728165,
|
72 |
+
"learning_rate": 5.4545454545454546e-05,
|
73 |
+
"loss": 0.0052,
|
74 |
+
"step": 80
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 16.0,
|
78 |
+
"eval_accuracy": 0.9230769230769231,
|
79 |
+
"eval_loss": 0.14537294209003448,
|
80 |
+
"eval_runtime": 0.4597,
|
81 |
+
"eval_samples_per_second": 56.556,
|
82 |
+
"eval_steps_per_second": 8.701,
|
83 |
+
"step": 80
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 18.0,
|
87 |
+
"grad_norm": 0.040240347385406494,
|
88 |
+
"learning_rate": 3.6363636363636364e-05,
|
89 |
+
"loss": 0.005,
|
90 |
+
"step": 90
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"epoch": 20.0,
|
94 |
+
"grad_norm": 0.0400131419301033,
|
95 |
+
"learning_rate": 1.8181818181818182e-05,
|
96 |
+
"loss": 0.0048,
|
97 |
+
"step": 100
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 22.0,
|
101 |
+
"grad_norm": 0.039389099925756454,
|
102 |
+
"learning_rate": 0.0,
|
103 |
+
"loss": 0.0048,
|
104 |
+
"step": 110
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 22.0,
|
108 |
+
"step": 110,
|
109 |
+
"total_flos": 1.2615695909255578e+17,
|
110 |
+
"train_loss": 0.04397649819200689,
|
111 |
+
"train_runtime": 84.5517,
|
112 |
+
"train_samples_per_second": 19.254,
|
113 |
+
"train_steps_per_second": 1.301
|
114 |
+
}
|
115 |
+
],
|
116 |
+
"logging_steps": 10,
|
117 |
+
"max_steps": 110,
|
118 |
+
"num_input_tokens_seen": 0,
|
119 |
+
"num_train_epochs": 22,
|
120 |
+
"save_steps": 40,
|
121 |
+
"total_flos": 1.2615695909255578e+17,
|
122 |
+
"train_batch_size": 16,
|
123 |
+
"trial_name": null,
|
124 |
+
"trial_params": null
|
125 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bab60cc9e62a612ea5adfddbcae3b3d445ad2a66cf5b8c39079230d5655ada3a
|
3 |
+
size 4984
|