JackWong0911
commited on
Commit
•
3e4fd60
1
Parent(s):
8cb4907
End of training
Browse files- README.md +66 -0
- all_results.json +8 -0
- config.json +40 -0
- model.safetensors +3 -0
- preprocessor_config.json +42 -0
- runs/May06_00-34-54_f95fdf4618de/events.out.tfevents.1714955709.f95fdf4618de.2039.0 +3 -0
- runs/May06_00-34-54_f95fdf4618de/events.out.tfevents.1714958082.f95fdf4618de.2039.1 +3 -0
- test_results.json +8 -0
- trainer_state.json +0 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-4.0
|
3 |
+
base_model: facebook/timesformer-base-finetuned-k400
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: timesformer-base-finetuned-k400-submission
|
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 |
+
# timesformer-base-finetuned-k400-submission
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [facebook/timesformer-base-finetuned-k400](https://huggingface.co/facebook/timesformer-base-finetuned-k400) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.1785
|
21 |
+
- Accuracy: 0.94
|
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: 4e-05
|
41 |
+
- train_batch_size: 1
|
42 |
+
- eval_batch_size: 1
|
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: 1500
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:------:|:----:|:---------------:|:--------:|
|
53 |
+
| 0.2307 | 0.1667 | 250 | 0.1391 | 0.96 |
|
54 |
+
| 0.2739 | 1.1667 | 500 | 0.6467 | 0.88 |
|
55 |
+
| 0.0006 | 2.1667 | 750 | 0.1763 | 0.96 |
|
56 |
+
| 0.0001 | 3.1667 | 1000 | 0.1302 | 0.96 |
|
57 |
+
| 0.0002 | 4.1667 | 1250 | 0.1326 | 0.96 |
|
58 |
+
| 0.0001 | 5.1667 | 1500 | 0.1758 | 0.96 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.40.1
|
64 |
+
- Pytorch 2.1.0+cu121
|
65 |
+
- Datasets 2.19.0
|
66 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.166666666666667,
|
3 |
+
"eval_accuracy": 0.94,
|
4 |
+
"eval_loss": 0.1785050332546234,
|
5 |
+
"eval_runtime": 82.8868,
|
6 |
+
"eval_samples_per_second": 1.206,
|
7 |
+
"eval_steps_per_second": 1.206
|
8 |
+
}
|
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/timesformer-base-finetuned-k400",
|
3 |
+
"architectures": [
|
4 |
+
"MyTimesformerForVideoClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"attention_type": "divided_space_time",
|
8 |
+
"drop_path_rate": 0,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.0,
|
11 |
+
"hidden_size": 768,
|
12 |
+
"id2label": {
|
13 |
+
"0": "archery",
|
14 |
+
"1": "bowling",
|
15 |
+
"2": "flying_kite",
|
16 |
+
"3": "high_jump",
|
17 |
+
"4": "marching"
|
18 |
+
},
|
19 |
+
"image_size": 224,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"archery": 0,
|
24 |
+
"bowling": 1,
|
25 |
+
"flying_kite": 2,
|
26 |
+
"high_jump": 3,
|
27 |
+
"marching": 4
|
28 |
+
},
|
29 |
+
"layer_norm_eps": 1e-06,
|
30 |
+
"model_type": "timesformer",
|
31 |
+
"num_attention_heads": 12,
|
32 |
+
"num_channels": 3,
|
33 |
+
"num_frames": 10,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"patch_size": 16,
|
36 |
+
"problem_type": "single_label_classification",
|
37 |
+
"qkv_bias": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.40.1"
|
40 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89320bb0733729c47b3c35cd8a1eec68861e22b3b404d89cf16e0767fd329d5a
|
3 |
+
size 485087636
|
preprocessor_config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_processor_keys": [
|
3 |
+
"videos",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"resample",
|
7 |
+
"do_center_crop",
|
8 |
+
"crop_size",
|
9 |
+
"do_rescale",
|
10 |
+
"rescale_factor",
|
11 |
+
"do_normalize",
|
12 |
+
"image_mean",
|
13 |
+
"image_std",
|
14 |
+
"return_tensors",
|
15 |
+
"data_format",
|
16 |
+
"input_data_format"
|
17 |
+
],
|
18 |
+
"crop_size": {
|
19 |
+
"height": 224,
|
20 |
+
"width": 224
|
21 |
+
},
|
22 |
+
"do_center_crop": true,
|
23 |
+
"do_normalize": true,
|
24 |
+
"do_rescale": true,
|
25 |
+
"do_resize": true,
|
26 |
+
"image_mean": [
|
27 |
+
0.485,
|
28 |
+
0.456,
|
29 |
+
0.406
|
30 |
+
],
|
31 |
+
"image_processor_type": "VideoMAEImageProcessor",
|
32 |
+
"image_std": [
|
33 |
+
0.229,
|
34 |
+
0.224,
|
35 |
+
0.225
|
36 |
+
],
|
37 |
+
"resample": 2,
|
38 |
+
"rescale_factor": 0.00392156862745098,
|
39 |
+
"size": {
|
40 |
+
"shortest_edge": 224
|
41 |
+
}
|
42 |
+
}
|
runs/May06_00-34-54_f95fdf4618de/events.out.tfevents.1714955709.f95fdf4618de.2039.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1caaac01999d32e632aad8baac2ace60bbfa110d241e1a21ed1c95eba24ba0a3
|
3 |
+
size 254940
|
runs/May06_00-34-54_f95fdf4618de/events.out.tfevents.1714958082.f95fdf4618de.2039.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae4a96b9fcd25bce01d5601c81ea2ee98eec527ee6f0a87208a30abe8fed749e
|
3 |
+
size 21334
|
test_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.166666666666667,
|
3 |
+
"eval_accuracy": 0.94,
|
4 |
+
"eval_loss": 0.1785050332546234,
|
5 |
+
"eval_runtime": 82.8868,
|
6 |
+
"eval_samples_per_second": 1.206,
|
7 |
+
"eval_steps_per_second": 1.206
|
8 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e3bf7f0445461872c35bfa406c892f3028ab368ef11973dd381023d19277fa0
|
3 |
+
size 5048
|