khaliiishah commited on
Commit
62efd1c
·
verified ·
1 Parent(s): 6693196

End of training

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: google/vivit-b-16x2-kinetics400
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: vivit-b-16x2-kinetics400-finetuned-ucf101-subset
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # vivit-b-16x2-kinetics400-finetuned-ucf101-subset
18
+
19
+ 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.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0847
22
+ - Accuracy: 0.9770
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 5e-05
42
+ - train_batch_size: 4
43
+ - eval_batch_size: 4
44
+ - seed: 42
45
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
46
+ - lr_scheduler_type: linear
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - training_steps: 375
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
54
+ | 0.327 | 0.8 | 300 | 0.0413 | 0.9730 |
55
+ | 0.0028 | 1.2 | 375 | 0.0248 | 0.9730 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.47.1
61
+ - Pytorch 1.13.1+cu117
62
+ - Datasets 3.2.0
63
+ - Tokenizers 0.21.0
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.2,
3
+ "eval_accuracy": 0.9770114942528736,
4
+ "eval_loss": 0.08467210084199905,
5
+ "eval_runtime": 66.0112,
6
+ "eval_samples_per_second": 1.318,
7
+ "eval_steps_per_second": 0.333
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.47.1",
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:e02ecc07cf862d42aad0761e09db3feff691ca431af7684a9f311bf6e1f20490
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/Jan04_07-56-11_3c93a9449ec1/events.out.tfevents.1735977375.3c93a9449ec1.266.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5294239d63153b5140e489deea6228633dc922b0a4649a59a77f0c944005819c
3
+ size 25578
runs/Jan04_07-56-11_3c93a9449ec1/events.out.tfevents.1735978156.3c93a9449ec1.266.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:884bbaccd0fb740220f1e67f0fd1e3cd7c99c3856cf73b471cd6f9f367d3a13f
3
+ size 411
test_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.2,
3
+ "eval_accuracy": 0.9770114942528736,
4
+ "eval_loss": 0.08467210084199905,
5
+ "eval_runtime": 66.0112,
6
+ "eval_samples_per_second": 1.318,
7
+ "eval_steps_per_second": 0.333
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,328 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.972972972972973,
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": 30.73906707763672,
14
+ "learning_rate": 1.3157894736842106e-05,
15
+ "loss": 2.5162,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.05333333333333334,
20
+ "grad_norm": 30.56110382080078,
21
+ "learning_rate": 2.6315789473684212e-05,
22
+ "loss": 1.974,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.08,
27
+ "grad_norm": 30.580888748168945,
28
+ "learning_rate": 3.9473684210526316e-05,
29
+ "loss": 1.7732,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.10666666666666667,
34
+ "grad_norm": 24.04612159729004,
35
+ "learning_rate": 4.9703264094955494e-05,
36
+ "loss": 1.4326,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.13333333333333333,
41
+ "grad_norm": 13.380224227905273,
42
+ "learning_rate": 4.821958456973294e-05,
43
+ "loss": 0.9701,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.16,
48
+ "grad_norm": 27.399700164794922,
49
+ "learning_rate": 4.673590504451038e-05,
50
+ "loss": 0.8552,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.18666666666666668,
55
+ "grad_norm": 31.170425415039062,
56
+ "learning_rate": 4.525222551928784e-05,
57
+ "loss": 0.6236,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.21333333333333335,
62
+ "grad_norm": 0.6463847160339355,
63
+ "learning_rate": 4.3768545994065286e-05,
64
+ "loss": 0.3492,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.24,
69
+ "grad_norm": 6.623310565948486,
70
+ "learning_rate": 4.228486646884273e-05,
71
+ "loss": 0.4079,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.26666666666666666,
76
+ "grad_norm": 15.640702247619629,
77
+ "learning_rate": 4.080118694362018e-05,
78
+ "loss": 0.6108,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.29333333333333333,
83
+ "grad_norm": 4.277254104614258,
84
+ "learning_rate": 3.9317507418397627e-05,
85
+ "loss": 0.0964,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 0.32,
90
+ "grad_norm": 0.38755565881729126,
91
+ "learning_rate": 3.783382789317508e-05,
92
+ "loss": 0.3366,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 0.3466666666666667,
97
+ "grad_norm": 1.2960447072982788,
98
+ "learning_rate": 3.635014836795252e-05,
99
+ "loss": 0.4302,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 0.37333333333333335,
104
+ "grad_norm": 1.9863858222961426,
105
+ "learning_rate": 3.4866468842729974e-05,
106
+ "loss": 0.2443,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 0.4,
111
+ "grad_norm": 16.24022102355957,
112
+ "learning_rate": 3.338278931750742e-05,
113
+ "loss": 0.1272,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 0.4266666666666667,
118
+ "grad_norm": 1.1514637470245361,
119
+ "learning_rate": 3.189910979228487e-05,
120
+ "loss": 0.4169,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 0.4533333333333333,
125
+ "grad_norm": 1.1362906694412231,
126
+ "learning_rate": 3.0415430267062318e-05,
127
+ "loss": 0.1192,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 0.48,
132
+ "grad_norm": 0.12466049939393997,
133
+ "learning_rate": 2.8931750741839762e-05,
134
+ "loss": 0.4113,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 0.5066666666666667,
139
+ "grad_norm": 0.7614925503730774,
140
+ "learning_rate": 2.744807121661721e-05,
141
+ "loss": 0.0469,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 0.5333333333333333,
146
+ "grad_norm": 0.4682028889656067,
147
+ "learning_rate": 2.5964391691394662e-05,
148
+ "loss": 0.0311,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 0.56,
153
+ "grad_norm": 0.858252227306366,
154
+ "learning_rate": 2.4480712166172106e-05,
155
+ "loss": 0.017,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 0.5866666666666667,
160
+ "grad_norm": 0.2377556562423706,
161
+ "learning_rate": 2.2997032640949558e-05,
162
+ "loss": 0.0082,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 0.6133333333333333,
167
+ "grad_norm": 0.10321161895990372,
168
+ "learning_rate": 2.1513353115727002e-05,
169
+ "loss": 0.0069,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 0.64,
174
+ "grad_norm": 1.6798615455627441,
175
+ "learning_rate": 2.0029673590504454e-05,
176
+ "loss": 0.0098,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 0.6666666666666666,
181
+ "grad_norm": 0.1340479999780655,
182
+ "learning_rate": 1.85459940652819e-05,
183
+ "loss": 0.0083,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 0.6933333333333334,
188
+ "grad_norm": 0.24002894759178162,
189
+ "learning_rate": 1.706231454005935e-05,
190
+ "loss": 0.0324,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 0.72,
195
+ "grad_norm": 0.1034119501709938,
196
+ "learning_rate": 1.5578635014836794e-05,
197
+ "loss": 0.011,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 0.7466666666666667,
202
+ "grad_norm": 0.1348913013935089,
203
+ "learning_rate": 1.4094955489614246e-05,
204
+ "loss": 0.2374,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 0.7733333333333333,
209
+ "grad_norm": 0.19884160161018372,
210
+ "learning_rate": 1.2611275964391692e-05,
211
+ "loss": 0.0041,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 0.8,
216
+ "grad_norm": 0.0887996107339859,
217
+ "learning_rate": 1.112759643916914e-05,
218
+ "loss": 0.327,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 0.8,
223
+ "eval_accuracy": 0.972972972972973,
224
+ "eval_loss": 0.041303958743810654,
225
+ "eval_runtime": 27.5663,
226
+ "eval_samples_per_second": 1.342,
227
+ "eval_steps_per_second": 0.363,
228
+ "step": 300
229
+ },
230
+ {
231
+ "epoch": 1.0266666666666666,
232
+ "grad_norm": 0.4455372393131256,
233
+ "learning_rate": 9.643916913946588e-06,
234
+ "loss": 0.0062,
235
+ "step": 310
236
+ },
237
+ {
238
+ "epoch": 1.0533333333333332,
239
+ "grad_norm": 0.0666133463382721,
240
+ "learning_rate": 8.160237388724036e-06,
241
+ "loss": 0.0063,
242
+ "step": 320
243
+ },
244
+ {
245
+ "epoch": 1.08,
246
+ "grad_norm": 0.16947615146636963,
247
+ "learning_rate": 6.676557863501484e-06,
248
+ "loss": 0.0026,
249
+ "step": 330
250
+ },
251
+ {
252
+ "epoch": 1.1066666666666667,
253
+ "grad_norm": 0.07509300112724304,
254
+ "learning_rate": 5.192878338278932e-06,
255
+ "loss": 0.0029,
256
+ "step": 340
257
+ },
258
+ {
259
+ "epoch": 1.1333333333333333,
260
+ "grad_norm": 0.06688421964645386,
261
+ "learning_rate": 3.7091988130563796e-06,
262
+ "loss": 0.0038,
263
+ "step": 350
264
+ },
265
+ {
266
+ "epoch": 1.16,
267
+ "grad_norm": 1.4143649339675903,
268
+ "learning_rate": 2.225519287833828e-06,
269
+ "loss": 0.0548,
270
+ "step": 360
271
+ },
272
+ {
273
+ "epoch": 1.1866666666666668,
274
+ "grad_norm": 0.1942415088415146,
275
+ "learning_rate": 7.41839762611276e-07,
276
+ "loss": 0.0028,
277
+ "step": 370
278
+ },
279
+ {
280
+ "epoch": 1.2,
281
+ "eval_accuracy": 0.972972972972973,
282
+ "eval_loss": 0.024778272956609726,
283
+ "eval_runtime": 28.2328,
284
+ "eval_samples_per_second": 1.311,
285
+ "eval_steps_per_second": 0.354,
286
+ "step": 375
287
+ },
288
+ {
289
+ "epoch": 1.2,
290
+ "step": 375,
291
+ "total_flos": 9.6083444588544e+17,
292
+ "train_loss": 0.3870846853355567,
293
+ "train_runtime": 685.2516,
294
+ "train_samples_per_second": 0.547,
295
+ "train_steps_per_second": 0.547
296
+ },
297
+ {
298
+ "epoch": 1.2,
299
+ "eval_accuracy": 0.9770114942528736,
300
+ "eval_loss": 0.08467210084199905,
301
+ "eval_runtime": 66.0112,
302
+ "eval_samples_per_second": 1.318,
303
+ "eval_steps_per_second": 0.333,
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:5ed3bb6f76a457d47751569a243e45f065311f9b180cfe548e8d8e50ddbed48a
3
+ size 4987