-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.py
143 lines (130 loc) · 3.69 KB
/
configs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
VIDEO_EMBEDDING_DIM = 512
MFCC_DIM = 39
VGGISH_DIM = 128
EGEMAPS_DIM = 23
BERT_DIM = 768
VIDEO_TEMPORAL_DIM = 128
MFCC_TEMPORAL_DIM = 32
VGGISH_TEMPORAL_DIM = 32
EGEMAPS_TEMPORAL_DIM = 32
BERT_TEMPORAL_DIM = 512
config = {
"frequency": {
"video": None,
"continuous_label": None,
"mfcc": 100,
"egemaps": 100,
"vggish": None,
"bert": None
},
"multiplier": {
"video": 1,
"cnn": 1,
"AU_continuous_label": 1,
"EXPR_continuous_label": 1,
"VA_continuous_label": 1,
"continuous_label": 1,
"mfcc": 1,
"egemaps": 1,
"vggish": 1,
"logmel": 1,
"bert": 1,
},
"feature_dimension": {
"video": (112, 112, 3),
"cnn": (512,),
"AU_continuous_label": (12,),
"EXPR_continuous_label": (1,),
"VA_continuous_label": (1,),
"continuous_label": (1,),
"SSL_continuous_label": (4,),
"mfcc": (39,),
"egemaps": (88,),
"vggish": (128,),
"logmel": (96, 64),
"bert": (768,)
},
"tcn": {
"embedding_dim": VIDEO_EMBEDDING_DIM,
"channels": {
'video': [VIDEO_EMBEDDING_DIM // 2, VIDEO_EMBEDDING_DIM // 2, VIDEO_EMBEDDING_DIM // 4,
VIDEO_EMBEDDING_DIM // 4],
'cnn_res50': [VIDEO_EMBEDDING_DIM // 2, VIDEO_EMBEDDING_DIM // 2, VIDEO_EMBEDDING_DIM // 4,
VIDEO_EMBEDDING_DIM // 4],
'mfcc': [MFCC_TEMPORAL_DIM, MFCC_TEMPORAL_DIM, MFCC_TEMPORAL_DIM, MFCC_TEMPORAL_DIM],
'vggish': [VGGISH_DIM // 2, VGGISH_DIM // 2, VGGISH_DIM // 4, VGGISH_DIM // 4],
'logmel': [VGGISH_DIM // 2, VGGISH_DIM // 2, VGGISH_DIM // 4, VGGISH_DIM // 4],
'egemaps': [EGEMAPS_TEMPORAL_DIM, EGEMAPS_TEMPORAL_DIM, EGEMAPS_TEMPORAL_DIM, EGEMAPS_TEMPORAL_DIM],
'bert': [BERT_TEMPORAL_DIM // 2, BERT_TEMPORAL_DIM // 2, BERT_TEMPORAL_DIM // 4, BERT_TEMPORAL_DIM // 4]
},
"kernel_size": 5,
"dropout": 0.1,
"attention": 0,
},
"tcn_settings": {
"video": {
"input_dim": 512,
"channel": [256, 256, 128, 128, 128],
"kernel_size": 5
},
"cnn": {
"input_dim": 512,
"channel": [256, 256, 128, 128],
"kernel_size": 5
},
"cnn_res50": {
"input_dim": 512,
"channel": [256, 256, 128, 128],
"kernel_size": 5
},
"vggish": {
"input_dim": 128,
"channel": [128, 128, 64, 64],
"kernel_size": 5
},
"logmel": {
"input_dim": 128,
"channel": [128, 128, 64, 64, 64],
"kernel_size": 5
},
"egemaps": {
"input_dim": 88,
"channel": [64, 64, 32, 32],
"kernel_size": 5
},
"mfcc": {
"input_dim": 39,
"channel": [32, 32, 32, 32],
"kernel_size": 5
},
"landmark": {
"input_dim": 136,
"channel": [64, 64, 32, 32],
"kernel_size": 5
},
"bert": {
"input_dim": 768,
"channel": [256, 256, 128, 128],
"kernel_size": 5
}
},
"vae_settings": {
"input_dim": 128
},
"attn_settings": {
"input_dim": 128,
"embedding_dim": 64,
"num_head": 4
},
"backbone_settings": {
"visual_state_dict": "res50_ir_0.887",
"audio_state_dict": "vggish"
},
"time_delay": 0,
"metrics": ["rmse", "pcc", "ccc"],
"save_plot": 0,
"backbone": {
"state_dict": "res50_ir_0.887",
"mode": "ir",
},
}