-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.server.yaml
More file actions
346 lines (339 loc) · 10.5 KB
/
Copy pathconfig.server.yaml
File metadata and controls
346 lines (339 loc) · 10.5 KB
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
train: True # train or not, default is True for generation we only need load pre-trained model
use_dataset: 'lj_speech_full' # dataset set generated.
use_model: 'dtc' # model to use , it must be defined in models section.
draw_prediction: True # at the of training draw.
load_model: True # load model or not, and what
load_epoch: 500 # load model, last epoch
save_model: True # save model,
regenerate: True # regenerated, factor when indicated by epochs_save
active_setting: small # indicate what setting to use, so we can switch from debug to production
evaluate: True # will run evaluation
root_dir: "."
log_dir: "logs"
nil_dir: "timing"
graph_dir: "graphs"
results_dir: "results"
figures_dir: "figures"
prediction_dir: "prediction" # where we save prediction
model_save_dir: "model" # where we save model
metrics_dir: "metrics" # metrics dir in case we need store separate metrics
datasets:
LJSpeech:
ds_type: "audio"
file_type: "wav"
format: raw
dir: "~/src/dtc/dataset/LJSpeech-1.1"
training_meta: ljs_audio_text_train_filelist.txt
validation_meta: ljs_audio_text_val_filelist.txt
test_meta: ljs_audio_text_test_filelist.txt
meta: metadata.csv
recursive: False
lj_speech_full:
format: tensor_mel
ds_type: "audio"
dir: "~/src/dtc/dataset/LJSpeech-1.1"
meta: metadata.csv
recursive: False
file_type: "torch"
dataset_files:
- "LJSpeech_train_num_sam_12500_filter_80_3.pt"
- "LJSpeech_validate_num_sam_100_filter_80_3.pt"
- "LJSpeech_test_num_sam_500_filter_80_3.pt"
training_meta: LJSpeech_train_num_sam_12500_filter_80_3.pt
validation_meta: LJSpeech_validate_num_sam_100_filter_80_3.pt
test_meta: LJSpeech_test_num_sam_500_filter_80_3.pt
checksums:
- "7bc0f1bac289cfd1ba8ea1c390bddf8f"
- "5d3b94b131c08afcca993dfbec54c63a"
- "3291d802351928da7c5d0d9c917c2663"
lj_speech_1k_raw:
ds_type: "audio"
file_type: "wav"
format: raw
dir: "~/src/dtc/dataset/LJSpeech-1.1"
training_meta: ljs_audio_text_train_filelist_1000.txt
validation_meta: ljs_audio_text_val_filelist.txt
test_meta: ljs_audio_text_test_filelist.txt
meta: metadata.csv
recursive: False
lj_speech_625:
format: tensor_mel
ds_type: "audio"
dir: "~/src/dtc/dataset/LJSpeech-1.1"
dataset_files:
- "LJSpeech_train_num_sam_625_filter_80_3.pt"
- "LJSpeech_validate_num_sam_100_filter_80_3.pt"
- "LJSpeech_test_num_sam_25_filter_80_3.pt"
training_meta: LJSpeech_train_num_sam_625_filter_80_3.pt
validation_meta: LJSpeech_validate_num_sam_100_filter_80_3.pt
test_meta: LJSpeech_test_num_sam_25_filter_80_3.pt
checksums:
- "bde6b0af0868c7a1a9bbdaaa79d08d56"
- "5d3b94b131c08afcca993dfbec54c63a"
- "6702b6b7f47f12891d9d95144400bdc9"
meta: metadata.csv
recursive: False
file_type: "torch"
LJSpeechSmallPkl:
ds_type: "audio"
dir: "~/Dropbox/Datasets/LJSpeechSmall"
format: tensor_mel
training_meta: LJSpeechSmall_train_80.pt
validation_meta: LJSpeechSmall_validate_80.pt
test_meta: LJSpeechSmall_test_80.pt
meta: metadata.csv
recursive: False
file_type: "wav"
settings:
# debug mode
debug:
early_stopping: True
epochs_log: 1000
start_test: 10
epochs_test: 10
epochs_save: 10
tensorboard_update: 10
# baseline
mini:
# if we need enable early stopping
early_stopping: True
epochs_log: 1000
start_test: 2
epochs_test: 2
epochs_save: 2
tensorboard_update: 10
# baseline
baseline:
early_stopping: True
epochs_log: 1000
start_test: 100
epochs_test: 100
epochs_save: 100
tensorboard_update: 100
# baseline
medium:
batch_size: 128
tensorboard_update: 20 # update rate each step mod tensorboard_update
early_stopping: True # early stopping
console_log_rate: 10 # when to log to console
start_test: 20 # when to start run a validation test.
epochs_test: 20 # epoch mod epochs_test_rate to start testing
epochs_save: 2 # rate when to save
save_per_iteration: False # if we want save per iteration for large model make sense not to wait
seed: 1234 # fix seed
epochs: 500 # total epochs
fp16: False # fp16 or fp32
distributed: False # if we distribute
backend: "nccl" # what distributed backend uses.
url: "tcp://localhost:54321"
cudnn_enabled: True
cudnn_benchmark: False
small:
epochs: 1000
batch_size: 128
grad_clipping: True
grad_max_norm: 1.0
tensorboard_update: 100 # update rate for tensorboard
early_stopping: True # early stopping
console_log_rate: 20 # when to log to console
start_test: 20
predict: 42 # will do validation , prediction every 64-th iteration .(re-scale based on ds/batch size)
predict_per_iteration: True # use epoch or iteration counter, in large batch size we might want to see progress.
epochs_save: 1 # when we save
save_per_iteration: False
seed: 1234
fp16: False # fp16 run
distributed: False # what distributed backend uses.
backend: "nccl" # backend: "gloo"
url: "tcp://localhost:54321"
master_address: localhost
master_port: 54321
cudnn_enabled: True
cudnn_benchmark: True
random_sampler: False # enables random sampler, note you can't shuffle than
workers:
- 192.168.254.205
dataloader:
train_set:
num_workers: 1
drop_last: True
pin_memory: True
shuffle: True
validation_set:
num_workers: 1
drop_last: False
pin_memory: True
shuffle: False
optimizers:
node_optimizer:
eps: 1e-8
weight_decay: 0
amsgrad: False
momentum=0:
betas: [0.9, 0.999]
type: Adam
edge_optimizer:
eps: 1e-8
weight_decay: 0
amsgrad: False
momentum=0:
betas: [ 0.9, 0.999 ]
type: Adam
dtc_optimizer:
desc: "main optimizer used by both model with simular decay and lr"
type: Adam
weight_decay: 1e-6
betas: [ 0.9, 0.999 ]
learning_rate: 1e-3
amsgrad: False
eps: 1e-8
# lr_schedulers definition
lr_schedulers:
- type: multistep
milestones: [ 400, 1000 ]
name: main_lr_scheduler
- type: ReduceLROnPlateau
mode: 'min' #min, max
patience: 10
name: dtc_scheduler
- type: CosineAnnealingWarmRestarts
name: cosine_annealing_warm
#
# Training strategy
strategy:
tacotron25:
type: sequential
order:
- spectrogram_layer
- wav2vec
dtc:
type: sequential
order:
- spectrogram_layer
- wav2vec
# Model definition
models:
# this pure model specific, single model can describe both edges and nodes
# in case we need use single model for edge and node prediction task ,
# use keyword single_model: model_name
tacotron25:
spectrogram_layer:
model: tacotron25
reverse_decoder: False
optimizer: tacotron2_optimizer
# lr_scheduler: main_lr_scheduler
has_input: True
has_output: True
max_wav_value: 32768.0
frames_per_step: 1
sampling_rate: 22050
filter_length: 1024 # length of the FFT window
win_length: 1024 # each frame of audio is windowed by
hop_length: 256
n_mel_channels: 80
mel_fmin: 0.0
mel_fmax: 8000.0
symbols_embedding_dim: 512
encoder:
desc: "Encoder parameters"
dropout_rate: 0.5
num_convolutions: 3
embedding_dim: 512
kernel_size: 5
decoder:
desc: "Decoder layer and parameters"
fps: 1
max_decoder_steps: 1000
gate_threshold: 0.5
attention_dropout: 0.1
decoder_dropout: 0.1
rnn_dim: 1024
pre_net_dim: 256
attention:
desc: "Attention layer and parameters"
rnn_dim: 1024
attention_dim: 128
attention_location:
desc: "Location Layer parameters"
num_filters: 32
kernel_size: 31
post_net:
desc: "Mel post-processing network"
embedding_dim: 512
kernel_size: 5
num_convolutions: 5
vocoder:
state: disabled
name: Test
model: GraphLSTM
optimizer: edge_optimizer
lr_scheduler: main_lr_scheduler
input_size: 1
dtc:
spectrogram_layer:
model: tacotron3
optimizer: dtc_optimizer
lr_scheduler: cosine_annealing_warm
reverse_decoder: False
enable_stft_loss: True
has_input: True
has_output: True
max_wav_value: 32768.0
frames_per_step: 1
sampling_rate: 22050
filter_length: 1024 # length of the FFT window
win_length: 1024 # each frame of audio is windowed by
hop_length: 256
n_mel_channels: 80
mel_fmin: 0.0
mel_fmax: 8000.0
symbols_embedding_dim: 512
encoder:
desc: "Encoder parameters"
dropout_rate: 0.5
num_convolutions: 3
embedding_dim: 512
kernel_size: 5
decoder:
desc: "Decoder layer and parameters"
fps: 1
max_decoder_steps: 1000
gate_threshold: 0.5
attention_dropout: 0.1
decoder_dropout: 0.1
rnn_dim: 1024
pre_net_dim: 256
attention:
desc: "Attention layer and parameters"
rnn_dim: 1024
attention_dim: 128
attention_location:
desc: "Location Layer parameters"
num_filters: 32
kernel_size: 31
post_net:
desc: "Mel post-processing network"
embedding_dim: 512
kernel_size: 5
num_convolutions: 5
vocoder:
name: Test
state: disabled
model: GraphLSTM
optimizer: edge_optimizer
lr_scheduler: main_lr_scheduler
input_size: 1
ray:
batch_size: [32, 64, 128]
lr_min: 1e-4
lr_max: 1e-1
num_samples: 10
checkpoint_freq: 4
resources:
cpu: 4
gpu: 1
attention_location_filters: 32
attention_kernel_size: 31
grad_clip:
min: 0.5
max: 1.0