-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yaml
51 lines (39 loc) · 1.24 KB
/
config.yaml
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
dir:
dataset: '../datasets/TIMIT/' # dataset directory
models: 'models/' # for storing models
plots: 'plots/' # for plots
pickle: 'pickle/' # pickle dumps root path
train:
batch_size: 75
epochs: 500 #total no. of epochs to train
test_per_epoch: 0 #test per epoch i.e. how many times in ONE epoch
test_every_epoch: 25 #after how many epochs
print_per_epoch: 2 #print loss function how often in each epoch
save_every: 50 #save models after how many epochs
plot_every: 25 #save plots for test loss/train loss/accuracy
resume: True #resume training from saved model
optim: 'Adam' #optimiser to speed up training
lr: 0.0003 #learning rate
test:
batch_size: 75
n_fbank: 40 # 40 for fitlerbank energies
n_mfcc: 39 # 39 for MFCC energies
window_size: 0.025 #25 milliseconds
window_step: 0.010 #10 ms
num_phones: 39 #39 phone labels
rnn: 'GRU'
hidden_dim: 512 # 384 for best GRU
num_layers: 4
dropout: 0.3
r_dropout: 0.2
grad_clip: 3
std_multiplier: 5
bidirectional: True
batchnorm: True
layerNorm: True
use_cuda: True #whether to use NVIDIA cuda
dump_phone_weights: False
decode_type: 'max' #max or CTC
gen_template: False
infer_mode: 'group' # group or indi
prob_thesh_const: 10 #replace 0 in substitution matrix with min/this value