-
Notifications
You must be signed in to change notification settings - Fork 8
/
consts.py
executable file
·58 lines (49 loc) · 1.33 KB
/
consts.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
from best_metrics import Best
class GlobalConsts:
single_gpu = True
load_model = False
save_grad = False
dataset = "mosi"
data_path = "/workspace/dataset/"
log_path = None
padding_len = -1
include_zero = True
# cellDim = 150
# normDim = 100
# hiddenDim = 300
config = {
"seed": 0,
"batch_size": 2,
"epoch_num": 50,
"cuda": 0,
"global_lr": 1e-4,
"gru_lr": 1e-4,
"beta1": 0.9,
"beta2": 0.999,
"eps": 1e-8,
'weight_decay': 1e-2,
'momentum': 0.9,
"gnn_dropout": 0.1,
"num_modality": 3,
"num_frames": 50,
"temporal_connectivity_order": 5,
"num_vision_aggr": 1,
"num_text_aggr": 1,
"num_audio_aggr": 1,
"text_dim": 300,
"audio_dim": 5,
"vision_dim": 20,
"graph_conv_in_dim": 512,
"graph_conv_out_dim": 512,
"gat_conv_num_heads": 4,
"transformer_nhead": 4,
"transformer_nhid": 1024,
"transformer_nlayers": 6,
}
device = None
best = Best()
def logParameters(self):
print( "Hyperparameters:")
for name in dir(GlobalConsts):
if name.find("__") == -1 and name.find("max") == -1 and name.find("min") == -1:
print( "\t%s: %s" % (name, str(getattr(GlobalConsts, name))))