Model save
Browse files- README.md +81 -0
- config.json +47 -0
- model.safetensors +3 -0
- preprocessor_config.json +26 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: cc-by-nc-4.0
|
4 |
+
base_model: MCG-NJU/videomae-base
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
metrics:
|
8 |
+
- accuracy
|
9 |
+
model-index:
|
10 |
+
- name: videomae-base-finetuned-ucf101-subset-face
|
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 |
+
# videomae-base-finetuned-ucf101-subset-face
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [MCG-NJU/videomae-base](https://huggingface.co/MCG-NJU/videomae-base) on an unknown dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 2.5315
|
22 |
+
- Accuracy: 0.6389
|
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: 3
|
43 |
+
- eval_batch_size: 3
|
44 |
+
- seed: 42
|
45 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
46 |
+
- lr_scheduler_type: linear
|
47 |
+
- lr_scheduler_warmup_ratio: 0.1
|
48 |
+
- training_steps: 2000
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
53 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
54 |
+
| 1.8253 | 9.005 | 100 | 1.7977 | 0.1667 |
|
55 |
+
| 1.6427 | 19.005 | 200 | 2.1211 | 0.1667 |
|
56 |
+
| 1.0603 | 29.005 | 300 | 2.5370 | 0.1944 |
|
57 |
+
| 0.6361 | 39.005 | 400 | 1.9683 | 0.4444 |
|
58 |
+
| 0.7149 | 49.005 | 500 | 2.8125 | 0.3889 |
|
59 |
+
| 0.3396 | 59.005 | 600 | 2.2497 | 0.5556 |
|
60 |
+
| 0.3026 | 69.005 | 700 | 1.7178 | 0.6389 |
|
61 |
+
| 0.3043 | 79.005 | 800 | 2.5029 | 0.6111 |
|
62 |
+
| 0.1636 | 89.005 | 900 | 2.7748 | 0.6111 |
|
63 |
+
| 0.1292 | 99.005 | 1000 | 2.1868 | 0.6389 |
|
64 |
+
| 0.5229 | 109.005 | 1100 | 2.4543 | 0.6111 |
|
65 |
+
| 0.0016 | 119.005 | 1200 | 1.7452 | 0.75 |
|
66 |
+
| 0.0013 | 129.005 | 1300 | 2.5026 | 0.6111 |
|
67 |
+
| 0.0011 | 139.005 | 1400 | 2.3153 | 0.6389 |
|
68 |
+
| 0.0011 | 149.005 | 1500 | 1.7536 | 0.75 |
|
69 |
+
| 0.0028 | 159.005 | 1600 | 2.5384 | 0.6389 |
|
70 |
+
| 0.0605 | 169.005 | 1700 | 2.6368 | 0.6111 |
|
71 |
+
| 0.2064 | 179.005 | 1800 | 2.3678 | 0.6667 |
|
72 |
+
| 0.0013 | 189.005 | 1900 | 2.4561 | 0.6389 |
|
73 |
+
| 0.0009 | 199.005 | 2000 | 2.5315 | 0.6389 |
|
74 |
+
|
75 |
+
|
76 |
+
### Framework versions
|
77 |
+
|
78 |
+
- Transformers 4.45.0
|
79 |
+
- Pytorch 2.4.1+cu118
|
80 |
+
- Datasets 3.0.0
|
81 |
+
- Tokenizers 0.20.0
|
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "MCG-NJU/videomae-base",
|
3 |
+
"architectures": [
|
4 |
+
"VideoMAEForVideoClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"decoder_hidden_size": 384,
|
8 |
+
"decoder_intermediate_size": 1536,
|
9 |
+
"decoder_num_attention_heads": 6,
|
10 |
+
"decoder_num_hidden_layers": 4,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.0,
|
13 |
+
"hidden_size": 768,
|
14 |
+
"id2label": {
|
15 |
+
"0": "left_eye",
|
16 |
+
"1": "left_mouth",
|
17 |
+
"2": "open_mouth",
|
18 |
+
"3": "right_eye",
|
19 |
+
"4": "right_mouth",
|
20 |
+
"5": "up_eyebrow"
|
21 |
+
},
|
22 |
+
"image_size": 224,
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"left_eye": 0,
|
27 |
+
"left_mouth": 1,
|
28 |
+
"open_mouth": 2,
|
29 |
+
"right_eye": 3,
|
30 |
+
"right_mouth": 4,
|
31 |
+
"up_eyebrow": 5
|
32 |
+
},
|
33 |
+
"layer_norm_eps": 1e-12,
|
34 |
+
"model_type": "videomae",
|
35 |
+
"norm_pix_loss": true,
|
36 |
+
"num_attention_heads": 12,
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_frames": 16,
|
39 |
+
"num_hidden_layers": 12,
|
40 |
+
"patch_size": 16,
|
41 |
+
"problem_type": "single_label_classification",
|
42 |
+
"qkv_bias": true,
|
43 |
+
"torch_dtype": "float32",
|
44 |
+
"transformers_version": "4.45.0",
|
45 |
+
"tubelet_size": 2,
|
46 |
+
"use_mean_pooling": false
|
47 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5b302246d64ca548185cac7eaa7c1ed2814a6e134e552798f89d32cab097ffa0
|
3 |
+
size 344949680
|
preprocessor_config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.485,
|
12 |
+
0.456,
|
13 |
+
0.406
|
14 |
+
],
|
15 |
+
"image_processor_type": "VideoMAEImageProcessor",
|
16 |
+
"image_std": [
|
17 |
+
0.229,
|
18 |
+
0.224,
|
19 |
+
0.225
|
20 |
+
],
|
21 |
+
"resample": 2,
|
22 |
+
"rescale_factor": 0.00392156862745098,
|
23 |
+
"size": {
|
24 |
+
"shortest_edge": 224
|
25 |
+
}
|
26 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1f5f67ff92dbd670aead26cd38f07bc9c5f9a761b2114b0c8166dc67ef4b6444
|
3 |
+
size 5240
|