-
Notifications
You must be signed in to change notification settings - Fork 52
/
config_lmdb.json
130 lines (116 loc) · 3.02 KB
/
config_lmdb.json
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
{
"name": "MASTER_Default",
"run_id":"example",
"finetune":false,
"distributed":true,
"local_world_size":4,
"local_rank":-1,
"global_rank":-1,
"deterministic":true,
"seed":123,
"model_arch": {
"type": "MASTER",
"args": {
"common_kwargs":{
"n_class":-1,
"with_encoder":false,
"model_size": 512,
"multiheads": 8
},
"backbone_kwargs":{
"in_channels": 3,
"gcb_kwargs":{
"ratio": 0.0625,
"headers": 1,
"att_scale": true,
"fusion_type": "channel_concat",
"layers":[false, true, true, true]
}
},
"encoder_kwargs":{
"stacks": 3,
"dropout": 0.2,
"feed_forward_size": 2048
},
"decoder_kwargs":{
"stacks": 3,
"dropout": 0.2,
"feed_forward_size": 2048
}
}
},
"train_dataset": {
"type": "hierarchy_dataset",
"args": {
"lmdb_dir_root":"/home/wwyu/dataset/data_lmdb_release/training",
"select_data": "MJ_train-ST",
"img_w":160,
"img_h":48,
"training":true
}
},
"train_loader": {
"type": "DataLoader",
"args":{
"batch_size": 32,
"shuffle": true,
"drop_last": true,
"num_workers": 8,
"pin_memory":false
}
},
"val_dataset": {
"type": "hierarchy_dataset",
"args": {
"lmdb_dir_root":"/home/wwyu/dataset/data_lmdb_release/val",
"select_data": "MJ_test-MJ_valid",
"img_w":160,
"img_h":48,
"training":true
}
},
"val_loader": {
"type": "DataLoader",
"args":{
"batch_size": 32,
"shuffle": false,
"drop_last": false,
"num_workers": -1,
"pin_memory":false
}
},
"optimizer": {
"type": "Adam",
"args":{
"lr": 0.0004
}
},
"lr_scheduler": {
"type": null,
"args": {
"step_size": 30,
"gamma": 0.1
}
},
"trainer": {
"epochs": 12,
"max_len_step":null,
"do_validation": true,
"validation_start_epoch": 5,
"log_step_interval": 1,
"val_step_interval": 100000,
"train_batch_size": 64,
"val_batch_size":64,
"train_num_workers":2,
"val_num_workers":2,
"save_dir": "/home/wwyu/model_output/master_saved/",
"save_period": 250,
"log_verbosity": 2,
"monitor": "max word_acc",
"monitor_open": true,
"early_stop": -1,
"anomaly_detection": false,
"tensorboard": false,
"sync_batch_norm":true
}
}