-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathua_test.cfg
198 lines (164 loc) · 6.49 KB
/
ua_test.cfg
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[cfg_proto]
cfg_proto = proto/global.proto
cfg_proto_chunk = proto/global_chunk.proto
[exp]
cmd =
run_nn_script = run_nn
out_folder = exp/uaspeech_test
seed = 1234
use_cuda = True
multi_gpu = True
save_gpumem = True
n_epochs_tr = 24
[dataset1]
data_name = train
fea = fea_name=fbankpitch
fea_lst=/home/user/kaldi/egs/uaspeech/data/train/fbankpitch/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/train/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbankpitch/cmvn_train.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fbank
fea_lst=/home/user/kaldi/egs/uaspeech/data/train/fbank/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/train/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbank/cmvn_train.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fmllr
fea_lst=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/train/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/train/utt2spk ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/train/data/cmvn_train.ark ark:- ark:- | add-deltas --delta-order=0 ark:- ark:- |
cw_left=9
cw_right=9
lab=lab_name=lab_cd
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_train
lab_opts=ali-to-pdf
lab_count_file=auto
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/train/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
lab_name=lab_mono
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_train
lab_opts=ali-to-phones --per-frame=true
lab_count_file=none
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/train/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
n_chunks = 20
[dataset2]
data_name = valid
fea = fea_name=fbankpitch
fea_lst=/home/user/kaldi/egs/uaspeech/data/valid/fbankpitch/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/valid/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbankpitch/cmvn_valid.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fbank
fea_lst=/home/user/kaldi/egs/uaspeech/data/valid/fbank/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/valid/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbank/cmvn_valid.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fmllr
fea_lst=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/valid/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/valid/utt2spk ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/valid/data/cmvn_valid.ark ark:- ark:- | add-deltas --delta-order=0 ark:- ark:- |
cw_left=9
cw_right=9
lab = lab_name=lab_cd
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_valid
lab_opts=ali-to-pdf
lab_count_file=auto
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/valid/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
lab_name=lab_mono
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_valid
lab_opts=ali-to-phones --per-frame=true
lab_count_file=none
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/valid/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
n_chunks = 5
[dataset3]
data_name = test
fea = fea_name=fbankpitch
fea_lst=/home/user/kaldi/egs/uaspeech/data/test/fbankpitch/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/test/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbankpitch/cmvn_test.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fbank
fea_lst=/home/user/kaldi/egs/uaspeech/data/test/fbank/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/data/test/utt2spk ark:/home/user/kaldi/egs/uaspeech/fbank/cmvn_test.ark ark:- ark:- | add-deltas --delta-order=2 ark:- ark:- |
cw_left=9
cw_right=9
fea_name=fmllr
fea_lst=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/test/feats.scp
fea_opts=apply-cmvn --utt2spk=ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/test/utt2spk ark:/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/test/data/cmvn_test.ark ark:- ark:- | add-deltas --delta-order=0 ark:- ark:- |
cw_left=9
cw_right=9
lab = lab_name=lab_cd
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_test
lab_opts=ali-to-pdf
lab_count_file=auto
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/test/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
lab_name=lab_mono
lab_folder=/home/user/kaldi/egs/uaspeech/exp/tri4_ali_test
lab_opts=ali-to-phones --per-frame=true
lab_count_file=none
lab_data_folder=/home/user/kaldi/egs/uaspeech/exp/train/dnn/fmllr-tri4/test/
lab_graph=/home/user/kaldi/egs/uaspeech/exp/train/tri4/graph/
n_chunks = 5
[data_use]
train_with = train
valid_with = valid
forward_with = test
[batches]
batch_size_train=256
max_seq_length_train=1000
increase_seq_length_train=True
start_seq_len_train=100
multply_factor_seq_len_train=2
batch_size_valid=256
max_seq_length_valid=1000
[architecture1]
arch_name=MLP_layers
arch_proto=proto/MLP.proto
arch_library=neural_networks
arch_class=MLP
arch_pretrain_file=none
arch_freeze=False
arch_seq_model=False
dnn_lay=1024,1024,1024,1024,1024,1024,N_out_lab_cd
dnn_drop=0.15,0.15,0.15,0.15,0.15,0.15,0.15,0.0
dnn_use_laynorm_inp=False
dnn_use_batchnorm_inp=False
dnn_use_batchnorm=True,True,True,True,True,True,False
dnn_use_laynorm=False,False,False,False,False,False,False
dnn_act=relu,relu,relu,relu,relu,relu,softmax
arch_lr=0.1
arch_halving_factor=0.5
arch_improvement_threshold=0.001
arch_opt=sgd
opt_momentum=0.0
opt_weight_decay=0.0
opt_dampening=0.0
opt_nesterov=False
[model]
model_proto=proto/model.proto
model:conc1=concatenate(fmllr,fbankpitch)
out_dnn1=compute(MLP_layers,conc1)
loss_final=cost_nll(out_dnn1,lab_cd)
err_final=cost_err(out_dnn1,lab_cd)
[forward]
forward_out = out_dnn1
normalize_posteriors = True
normalize_with_counts_from = lab_cd
save_out_file = False
require_decoding = True
[decoding]
decoding_script_folder = kaldi_decoding_scripts/
decoding_script = decode_dnn.sh
decoding_proto = proto/decoding.proto
min_active = 200
max_active = 7000
max_mem = 50000000
beam = 20.0
latbeam = 12.0
acwt = 0.10
max_arcs = -1
skip_scoring = false
scoring_script = /home/user/kaldi/egs/uaspeech/local/score.sh
scoring_opts = "--min-lmwt 4 --max-lmwt 23"
norm_vars = False