johko commited on
Commit
8a9c155
1 Parent(s): a0392a8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: google/vivit-b-16x2-kinetics400
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: vivit-b-16x2-kinetics400-finetuned-ucf101-subset
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # vivit-b-16x2-kinetics400-finetuned-ucf101-subset
17
+
18
+ This model is a fine-tuned version of [google/vivit-b-16x2-kinetics400](https://huggingface.co/google/vivit-b-16x2-kinetics400) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0130
21
+ - Accuracy: 1.0
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 4
42
+ - eval_batch_size: 4
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_ratio: 0.1
47
+ - training_steps: 375
48
+
49
+ ### Training results
50
+
51
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
52
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
53
+ | 0.0087 | 0.8 | 300 | 0.0249 | 1.0 |
54
+ | 0.0048 | 1.2 | 375 | 0.0141 | 1.0 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.42.4
60
+ - Pytorch 1.13.1+cu117
61
+ - Datasets 2.19.2
62
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.2,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.012984414584934711,
5
+ "eval_runtime": 65.2088,
6
+ "eval_samples_per_second": 1.334,
7
+ "eval_steps_per_second": 0.337
8
+ }
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vivit-b-16x2-kinetics400",
3
+ "architectures": [
4
+ "VivitForVideoClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "hidden_act": "gelu_fast",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 768,
10
+ "id2label": {
11
+ "0": "ApplyEyeMakeup",
12
+ "1": "ApplyLipstick",
13
+ "2": "Archery",
14
+ "3": "BabyCrawling",
15
+ "4": "BalanceBeam",
16
+ "5": "BandMarching",
17
+ "6": "BaseballPitch",
18
+ "7": "Basketball",
19
+ "8": "BasketballDunk",
20
+ "9": "BenchPress"
21
+ },
22
+ "image_size": 224,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 3072,
25
+ "label2id": {
26
+ "ApplyEyeMakeup": 0,
27
+ "ApplyLipstick": 1,
28
+ "Archery": 2,
29
+ "BabyCrawling": 3,
30
+ "BalanceBeam": 4,
31
+ "BandMarching": 5,
32
+ "BaseballPitch": 6,
33
+ "Basketball": 7,
34
+ "BasketballDunk": 8,
35
+ "BenchPress": 9
36
+ },
37
+ "layer_norm_eps": 1e-06,
38
+ "model_type": "vivit",
39
+ "num_attention_heads": 12,
40
+ "num_channels": 3,
41
+ "num_frames": 32,
42
+ "num_hidden_layers": 12,
43
+ "qkv_bias": true,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.42.4",
46
+ "tubelet_size": [
47
+ 2,
48
+ 16,
49
+ 16
50
+ ],
51
+ "video_size": [
52
+ 32,
53
+ 224,
54
+ 224
55
+ ]
56
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8265080ddc6ef3e2065fed6b70bfda4a37c7a8ef4022d7578f93b224a9a32257
3
+ size 354639992
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": true,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "image_processor_type": "VivitImageProcessor",
16
+ "image_std": [
17
+ 0.5,
18
+ 0.5,
19
+ 0.5
20
+ ],
21
+ "offset": true,
22
+ "resample": 2,
23
+ "rescale_factor": 0.00784313725490196,
24
+ "size": {
25
+ "shortest_edge": 224
26
+ }
27
+ }
runs/Aug20_09-50-05_c25ef2b0d98a/events.out.tfevents.1724147436.c25ef2b0d98a.1374.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:392235ae198ac069d5252ea915ac388e5e979215aa304b89006e0d5c48306966
3
+ size 24912
runs/Aug20_09-50-05_c25ef2b0d98a/events.out.tfevents.1724148929.c25ef2b0d98a.1374.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c13eb0bf6d734331f79a46cffee99a3b07e7af8a939f16868afd45fd093fbb5
3
+ size 411
test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.2,
3
+ "eval_accuracy": 1.0,
4
+ "eval_loss": 0.012984414584934711,
5
+ "eval_runtime": 65.2088,
6
+ "eval_samples_per_second": 1.334,
7
+ "eval_steps_per_second": 0.337
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.0,
3
+ "best_model_checkpoint": "vivit-b-16x2-kinetics400-finetuned-ucf101-subset/checkpoint-300",
4
+ "epoch": 1.2,
5
+ "eval_steps": 500,
6
+ "global_step": 375,
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.02666666666666667,
13
+ "grad_norm": 26.50551986694336,
14
+ "learning_rate": 1.3157894736842106e-05,
15
+ "loss": 2.3387,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.05333333333333334,
20
+ "grad_norm": 30.613746643066406,
21
+ "learning_rate": 2.6315789473684212e-05,
22
+ "loss": 2.0688,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.08,
27
+ "grad_norm": 32.245540618896484,
28
+ "learning_rate": 3.9473684210526316e-05,
29
+ "loss": 2.1429,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.10666666666666667,
34
+ "grad_norm": 19.39073371887207,
35
+ "learning_rate": 4.9703264094955494e-05,
36
+ "loss": 1.3632,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.13333333333333333,
41
+ "grad_norm": 10.221552848815918,
42
+ "learning_rate": 4.821958456973294e-05,
43
+ "loss": 0.8581,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.16,
48
+ "grad_norm": 13.818096160888672,
49
+ "learning_rate": 4.673590504451038e-05,
50
+ "loss": 0.862,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.18666666666666668,
55
+ "grad_norm": 30.478605270385742,
56
+ "learning_rate": 4.525222551928784e-05,
57
+ "loss": 0.6552,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.21333333333333335,
62
+ "grad_norm": 0.36535993218421936,
63
+ "learning_rate": 4.3768545994065286e-05,
64
+ "loss": 0.3451,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.24,
69
+ "grad_norm": 6.710868835449219,
70
+ "learning_rate": 4.228486646884273e-05,
71
+ "loss": 0.534,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.26666666666666666,
76
+ "grad_norm": 25.211732864379883,
77
+ "learning_rate": 4.080118694362018e-05,
78
+ "loss": 0.3819,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.29333333333333333,
83
+ "grad_norm": 7.926482677459717,
84
+ "learning_rate": 3.9317507418397627e-05,
85
+ "loss": 0.0965,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 0.32,
90
+ "grad_norm": 0.26946061849594116,
91
+ "learning_rate": 3.783382789317508e-05,
92
+ "loss": 0.4015,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 0.3466666666666667,
97
+ "grad_norm": 0.7694262266159058,
98
+ "learning_rate": 3.635014836795252e-05,
99
+ "loss": 0.2223,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 0.37333333333333335,
104
+ "grad_norm": 1.0302479267120361,
105
+ "learning_rate": 3.4866468842729974e-05,
106
+ "loss": 0.3088,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 0.4,
111
+ "grad_norm": 13.570771217346191,
112
+ "learning_rate": 3.338278931750742e-05,
113
+ "loss": 0.1342,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 0.4266666666666667,
118
+ "grad_norm": 0.18270577490329742,
119
+ "learning_rate": 3.189910979228487e-05,
120
+ "loss": 0.3541,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 0.4533333333333333,
125
+ "grad_norm": 0.24952581524848938,
126
+ "learning_rate": 3.0415430267062318e-05,
127
+ "loss": 0.145,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 0.48,
132
+ "grad_norm": 0.18914468586444855,
133
+ "learning_rate": 2.8931750741839762e-05,
134
+ "loss": 0.2112,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 0.5066666666666667,
139
+ "grad_norm": 0.3731645941734314,
140
+ "learning_rate": 2.744807121661721e-05,
141
+ "loss": 0.0727,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 0.5333333333333333,
146
+ "grad_norm": 0.33601468801498413,
147
+ "learning_rate": 2.5964391691394662e-05,
148
+ "loss": 0.0327,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 0.56,
153
+ "grad_norm": 5.794644355773926,
154
+ "learning_rate": 2.4480712166172106e-05,
155
+ "loss": 0.0168,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 0.5866666666666667,
160
+ "grad_norm": 0.25008541345596313,
161
+ "learning_rate": 2.2997032640949558e-05,
162
+ "loss": 0.0082,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 0.6133333333333333,
167
+ "grad_norm": 0.1409362554550171,
168
+ "learning_rate": 2.1513353115727002e-05,
169
+ "loss": 0.0104,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 0.64,
174
+ "grad_norm": 1.2816823720932007,
175
+ "learning_rate": 2.0029673590504454e-05,
176
+ "loss": 0.0111,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 0.6666666666666666,
181
+ "grad_norm": 0.09208779036998749,
182
+ "learning_rate": 1.85459940652819e-05,
183
+ "loss": 0.0078,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 0.6933333333333334,
188
+ "grad_norm": 0.1806335598230362,
189
+ "learning_rate": 1.706231454005935e-05,
190
+ "loss": 0.0187,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 0.72,
195
+ "grad_norm": 0.12033367902040482,
196
+ "learning_rate": 1.5578635014836794e-05,
197
+ "loss": 0.0155,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 0.7466666666666667,
202
+ "grad_norm": 0.18079906702041626,
203
+ "learning_rate": 1.4094955489614246e-05,
204
+ "loss": 0.3202,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 0.7733333333333333,
209
+ "grad_norm": 0.1464352011680603,
210
+ "learning_rate": 1.2611275964391692e-05,
211
+ "loss": 0.0041,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 0.8,
216
+ "grad_norm": 0.09388105571269989,
217
+ "learning_rate": 1.112759643916914e-05,
218
+ "loss": 0.0087,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 0.8,
223
+ "eval_accuracy": 1.0,
224
+ "eval_loss": 0.024852987378835678,
225
+ "eval_runtime": 26.7584,
226
+ "eval_samples_per_second": 1.383,
227
+ "eval_steps_per_second": 0.374,
228
+ "step": 300
229
+ },
230
+ {
231
+ "epoch": 1.0266666666666666,
232
+ "grad_norm": 0.42200812697410583,
233
+ "learning_rate": 9.643916913946588e-06,
234
+ "loss": 0.0057,
235
+ "step": 310
236
+ },
237
+ {
238
+ "epoch": 1.0533333333333332,
239
+ "grad_norm": 0.05835086107254028,
240
+ "learning_rate": 8.160237388724036e-06,
241
+ "loss": 0.0047,
242
+ "step": 320
243
+ },
244
+ {
245
+ "epoch": 1.08,
246
+ "grad_norm": 0.12930744886398315,
247
+ "learning_rate": 6.676557863501484e-06,
248
+ "loss": 0.0028,
249
+ "step": 330
250
+ },
251
+ {
252
+ "epoch": 1.1066666666666667,
253
+ "grad_norm": 0.07907194644212723,
254
+ "learning_rate": 5.192878338278932e-06,
255
+ "loss": 0.0033,
256
+ "step": 340
257
+ },
258
+ {
259
+ "epoch": 1.1333333333333333,
260
+ "grad_norm": 0.11033826321363449,
261
+ "learning_rate": 3.7091988130563796e-06,
262
+ "loss": 0.0035,
263
+ "step": 350
264
+ },
265
+ {
266
+ "epoch": 1.16,
267
+ "grad_norm": 1.0931745767593384,
268
+ "learning_rate": 2.225519287833828e-06,
269
+ "loss": 0.0276,
270
+ "step": 360
271
+ },
272
+ {
273
+ "epoch": 1.1866666666666668,
274
+ "grad_norm": 0.21536993980407715,
275
+ "learning_rate": 7.41839762611276e-07,
276
+ "loss": 0.0048,
277
+ "step": 370
278
+ },
279
+ {
280
+ "epoch": 1.2,
281
+ "eval_accuracy": 1.0,
282
+ "eval_loss": 0.014085639268159866,
283
+ "eval_runtime": 26.8334,
284
+ "eval_samples_per_second": 1.379,
285
+ "eval_steps_per_second": 0.373,
286
+ "step": 375
287
+ },
288
+ {
289
+ "epoch": 1.2,
290
+ "step": 375,
291
+ "total_flos": 9.6083444588544e+17,
292
+ "train_loss": 0.37345028610527514,
293
+ "train_runtime": 669.2197,
294
+ "train_samples_per_second": 0.56,
295
+ "train_steps_per_second": 0.56
296
+ },
297
+ {
298
+ "epoch": 1.2,
299
+ "eval_accuracy": 1.0,
300
+ "eval_loss": 0.012984414584934711,
301
+ "eval_runtime": 65.2088,
302
+ "eval_samples_per_second": 1.334,
303
+ "eval_steps_per_second": 0.337,
304
+ "step": 375
305
+ }
306
+ ],
307
+ "logging_steps": 10,
308
+ "max_steps": 375,
309
+ "num_input_tokens_seen": 0,
310
+ "num_train_epochs": 9223372036854775807,
311
+ "save_steps": 500,
312
+ "stateful_callbacks": {
313
+ "TrainerControl": {
314
+ "args": {
315
+ "should_epoch_stop": false,
316
+ "should_evaluate": false,
317
+ "should_log": false,
318
+ "should_save": true,
319
+ "should_training_stop": true
320
+ },
321
+ "attributes": {}
322
+ }
323
+ },
324
+ "total_flos": 9.6083444588544e+17,
325
+ "train_batch_size": 1,
326
+ "trial_name": null,
327
+ "trial_params": null
328
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:898f5d908198edd60c2d7aea1a8d2ffcefb83eb529f992b0bbbd46854d9c7e0f
3
+ size 4731