-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathparams.py
More file actions
48 lines (39 loc) · 896 Bytes
/
params.py
File metadata and controls
48 lines (39 loc) · 896 Bytes
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
from grad.utils import fix_len_compatibility
seed = 37
# data parameters
train_filelist_path = './data/files/train.txt'
valid_filelist_path = './data/files/valid.txt'
n_spks = 1
n_feats = 100
spk_emb_dim = 64
#feature_extractor:
# class_path: vocos.feature_extractors.MelSpectrogramFeatures
# init_args:
# sample_rate: 24000
# n_fft: 1024
# hop_length: 256
# n_mels: 100
# padding: center
# encoder parameters
n_enc_channels = 192
filter_channels = 512
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
full_epochs = 900
fast_epochs = 100
log_dir = 'logs/matcha'
test_size = 4
batch_size = 8
learning_rate = 1e-4
save_every = 5
out_size = fix_len_compatibility(2*24000//256)