-
Notifications
You must be signed in to change notification settings - Fork 1
/
hparams.py
66 lines (59 loc) · 1.51 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
class hparams:
################################
# Data Parameters #
################################
# Image #
################################
img_size = 224
RNN_TYPE = 'LSTM'
################################
# Audio #
################################
num_mels = 80
################################
# Model Parameters #
################################
# Encoder parameters
encoder_embedding_dim = 512 #1024
# Decoder parameters
n_frames_per_step = 3
decoder_rnn_dim = 1024
prenet_dim = 256
max_decoder_steps = 200
gate_threshold = 0.5
p_attention_dropout = 0.1
p_decoder_dropout = 0.1
# Attention parameters
attention_rnn_dim = 1024
attention_dim = 256
# Location Layer parameters
attention_location_n_filters = 32
attention_location_kernel_size = 31
# Mel-post processing network parameters
postnet_embedding_dim = 512
postnet_kernel_size = 5
postnet_n_convolutions = 5
################################
# Train #
################################
is_cuda = True
pin_mem = True
n_workers = 8 #8
lr = 2e-3
betas = (0.9, 0.999)
eps = 1e-6
sch = True
sch_step = 4000
max_iter = 2e5
batch_size = 32 #32
weight_decay = 1e-6
grad_clip_thresh = 1.0
mask_padding = True
p = 10 # mel spec loss penalty
Scheduled_Sampling = True
################################
# Infer #
################################
sigma_infer = 0.9
denoising_strength = 0.01
seft_hop_length = 256