forked from auspicious3000/SpeechSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hparams.py
49 lines (40 loc) · 1.02 KB
/
hparams.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
from tfcompat.hparam import HParams
# NOTE: If you want full control for model architecture. please take a look
# at the code and change whatever you want. Some hyper parameters are hardcoded.
# Default hyperparameters:
hparams = HParams(
# model
freq = 8,
dim_neck = 8,
freq_2 = 8,
dim_neck_2 = 1,
freq_3 = 8,
dim_neck_3 = 32,
dim_enc = 512,
dim_enc_2 = 128,
dim_enc_3 = 256,
dim_freq = 80,
dim_spk_emb = 82,
dim_f0 = 257,
dim_dec = 512,
len_raw = 128,
chs_grp = 16,
# interp
min_len_seg = 19,
max_len_seg = 32,
min_len_seq = 64,
max_len_seq = 128,
max_len_pad = 192,
# data loader
root_dir = 'assets/spmel',
feat_dir = 'assets/raptf0',
batch_size = 16,
mode = 'train',
shuffle = True,
num_workers = 0,
samplier = 8,
)
def hparams_debug_string():
values = hparams.values()
hp = [' %s: %s' % (name, values[name]) for name in values]
return 'Hyperparameters:\n' + '\n'.join(hp)