-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathparams.py
52 lines (46 loc) · 1.27 KB
/
params.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
# Copyright (C) 2021. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# MIT License for more details.
from model.utils import fix_len_compatibility
# data parameters
train_filelist_path = 'resources/filelists/genshin/train.txt'
valid_filelist_path = 'resources/filelists/genshin/val.txt'
test_filelist_path = 'resources/filelists/genshin/test.txt'
n_feats = 80
n_spks = 2
spk_emb_dim = 64
n_feats = 80
n_fft = 1280
sample_rate = 16000
hop_length = 320
win_length = 1280
f_min = 0
f_max = 8000
# encoder parameters
n_enc_channels = 192
filter_channels = 768
filter_channels_dp = 256
n_enc_layers = 6
enc_kernel = 3
enc_dropout = 0.1
n_heads = 2
window_size = 4
# decoder parameters
dec_dim = 64
beta_min = 0.05
beta_max = 20.0
pe_scale = 1000 # 1 for `grad-tts-old.pt` checkpoint
# training parameters
log_dir = 'logs/vcexp1'
test_size = 1
n_epochs = 10000
batch_size = 64
learning_rate = 1e-4
seed = 37
save_every = 50
out_size = fix_len_compatibility(2*16000//320)
train_frames = 128