ratchy-oak
commited on
End of training
Browse files
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: google/vivit-b-16x2-kinetics400
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
- recall
|
10 |
+
- precision
|
11 |
+
model-index:
|
12 |
+
- name: vivit-b-16x2-kinetics400-finetuned-cctv-surveillance
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# vivit-b-16x2-kinetics400-finetuned-cctv-surveillance
|
20 |
+
|
21 |
+
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.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.1690
|
24 |
+
- Accuracy: 0.9559
|
25 |
+
- F1: 0.9430
|
26 |
+
- Recall: 0.9559
|
27 |
+
- Precision: 0.9333
|
28 |
+
|
29 |
+
## Model description
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Intended uses & limitations
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training and evaluation data
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Training procedure
|
42 |
+
|
43 |
+
### Training hyperparameters
|
44 |
+
|
45 |
+
The following hyperparameters were used during training:
|
46 |
+
- learning_rate: 5e-06
|
47 |
+
- train_batch_size: 2
|
48 |
+
- eval_batch_size: 2
|
49 |
+
- seed: 42
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: linear
|
52 |
+
- lr_scheduler_warmup_ratio: 0.1
|
53 |
+
- training_steps: 4032
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Recall | Precision |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:------:|:---------:|
|
59 |
+
| 1.5836 | 0.12 | 504 | 0.3644 | 0.9206 | 0.8850 | 0.9206 | 0.8799 |
|
60 |
+
| 0.3767 | 1.12 | 1008 | 0.2586 | 0.9265 | 0.8994 | 0.9265 | 0.8831 |
|
61 |
+
| 0.2063 | 2.12 | 1512 | 0.2190 | 0.9294 | 0.9097 | 0.9294 | 0.9002 |
|
62 |
+
| 0.4514 | 3.12 | 2016 | 0.2217 | 0.9529 | 0.9419 | 0.9529 | 0.9380 |
|
63 |
+
| 0.2678 | 4.12 | 2520 | 0.1919 | 0.9529 | 0.9419 | 0.9529 | 0.9380 |
|
64 |
+
| 0.2311 | 5.12 | 3024 | 0.1797 | 0.9412 | 0.9252 | 0.9412 | 0.9141 |
|
65 |
+
| 0.5256 | 6.12 | 3528 | 0.1690 | 0.9559 | 0.9430 | 0.9559 | 0.9333 |
|
66 |
+
| 0.539 | 7.12 | 4032 | 0.1678 | 0.9529 | 0.9398 | 0.9529 | 0.9297 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.39.3
|
72 |
+
- Pytorch 2.1.2
|
73 |
+
- Datasets 2.18.0
|
74 |
+
- Tokenizers 0.15.2
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "abuse",
|
12 |
+
"1": "arson",
|
13 |
+
"2": "burglary",
|
14 |
+
"3": "explosion",
|
15 |
+
"4": "normal",
|
16 |
+
"5": "roadaccidents",
|
17 |
+
"6": "shooting"
|
18 |
+
},
|
19 |
+
"image_size": 224,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 3072,
|
22 |
+
"label2id": {
|
23 |
+
"abuse": 0,
|
24 |
+
"arson": 1,
|
25 |
+
"burglary": 2,
|
26 |
+
"explosion": 3,
|
27 |
+
"normal": 4,
|
28 |
+
"roadaccidents": 5,
|
29 |
+
"shooting": 6
|
30 |
+
},
|
31 |
+
"layer_norm_eps": 1e-06,
|
32 |
+
"model_type": "vivit",
|
33 |
+
"num_attention_heads": 12,
|
34 |
+
"num_channels": 3,
|
35 |
+
"num_frames": 32,
|
36 |
+
"num_hidden_layers": 12,
|
37 |
+
"qkv_bias": true,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.39.3",
|
40 |
+
"tubelet_size": [
|
41 |
+
2,
|
42 |
+
16,
|
43 |
+
16
|
44 |
+
],
|
45 |
+
"video_size": [
|
46 |
+
32,
|
47 |
+
224,
|
48 |
+
224
|
49 |
+
]
|
50 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a167a66ebff3574dafc879ad2e1e27e9401067f40d4f38d5c4b2411464d85917
|
3 |
+
size 354630756
|
preprocessor_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"offset",
|
12 |
+
"do_normalize",
|
13 |
+
"image_mean",
|
14 |
+
"image_std",
|
15 |
+
"return_tensors",
|
16 |
+
"data_format",
|
17 |
+
"input_data_format"
|
18 |
+
],
|
19 |
+
"crop_size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
},
|
23 |
+
"do_center_crop": true,
|
24 |
+
"do_normalize": true,
|
25 |
+
"do_rescale": true,
|
26 |
+
"do_resize": true,
|
27 |
+
"image_mean": [
|
28 |
+
0.5,
|
29 |
+
0.5,
|
30 |
+
0.5
|
31 |
+
],
|
32 |
+
"image_processor_type": "VivitImageProcessor",
|
33 |
+
"image_std": [
|
34 |
+
0.5,
|
35 |
+
0.5,
|
36 |
+
0.5
|
37 |
+
],
|
38 |
+
"offset": true,
|
39 |
+
"resample": 2,
|
40 |
+
"rescale_factor": 0.00784313725490196,
|
41 |
+
"size": {
|
42 |
+
"shortest_edge": 224
|
43 |
+
}
|
44 |
+
}
|
runs/Jun10_03-35-22_e2e71f0c61fb/events.out.tfevents.1717990525.e2e71f0c61fb.34.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:362fc281874c8881e1e408458417cd3e7c7368b862f17b2dc800198f9f3b2246
|
3 |
+
size 94154
|
runs/Jun10_03-35-22_e2e71f0c61fb/events.out.tfevents.1718017172.e2e71f0c61fb.34.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:51d4280e804bb9718d395aa20f93e8fd448230d0b767fcbe1c6a544650aea58e
|
3 |
+
size 560
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3903b6fd625470f6f5cd33b00384f12d2c619d8cacbc0b2e99583c95ae0b3a08
|
3 |
+
size 5048
|