-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
72 lines (48 loc) · 1.2 KB
/
config.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
## base params
conv_deconv_same = True
conv_deconv_grad = False
init_fourier = True
attention_only = True
max_T = 500
## data params
sample_rate = 8_000 # 22_050 # 44_100
silence_thr_db = 0
data_path = 'data'
dev_ratio = 0
## model params
frame_len = 2048
frame_stride = frame_len//4
frame_out = frame_len//2+1
timestep_size = frame_out
in_size = timestep_size
out_size = timestep_size
creation_info = [in_size,'l' if not attention_only else 'ft',128,'ft',out_size]
attention1_info = [timestep_size+2, 'ft', 1]
attention2_info = [timestep_size, 'ft', timestep_size]
init_xavier = True
forget_bias = 0
## train params
seq_window_len = 9999
seq_stride_len = seq_window_len-1
seq_force_ratio = 1 #0
loss_squared = True
learning_rate = 1e-2
batch_size = 0
gradient_clip = 0
hm_epochs = 100
optimizer = 'custom'
model_path = 'models/model'
fresh_model = True
fresh_meta = True
ckp_per_ep = hm_epochs//10
use_gpu = False
## interact params
hm_extra_steps = 1000 #seq_window_len
hm_wav_gen = 5
output_file = 'resp'
##
config_to_save = [
'sample_rate', 'frame_len', 'frame_stride', 'frame_out',
'hm_steps_back', 'in_size', 'hm_modalities', 'out_size',
'creation_info', 'attention_only', 'conv_deconv_same'
]