-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhyperparams.py
More file actions
48 lines (41 loc) · 1.12 KB
/
Copy pathhyperparams.py
File metadata and controls
48 lines (41 loc) · 1.12 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
# Audio
num_mels = 80
# num_freq = 1024
n_fft = 2048
sr = 22050
# frame_length_ms = 50.
# frame_shift_ms = 12.5
preemphasis = 0.97
frame_shift = 0.0125 # seconds
frame_length = 0.05 # seconds
hop_length = int(sr*frame_shift) # samples.
win_length = int(sr*frame_length) # samples.
n_mels = 80 # Number of Mel banks to generate
power = 1.2 # Exponent for amplifying the predicted magnitude
min_level_db = -100
ref_level_db = 20
hidden_size = 256
embedding_size = 512
max_db = 100
ref_db = 20
n_iter = 60
# power = 1.5
outputs_per_step = 1
epochs = 350
lr = 0.001
save_step = 5000
image_step = 500
batch_size = 64
cleaners='english_cleaners'
# General:
data_path = '/kaggle/input/mel-mag-prepared-data'
checkpoint_path = '/kaggle/working'
sample_path = '/kaggle/working'
# For kaggle use:
"""
data_path_used_for_prepare_data = '/kaggle/input/the-lj-speech-dataset/LJSpeech-1.1'
output_path_used_for_prepare_data = '/kaggle/working/'
"""
# For local use: (prepare_data.ipynb)
data_path_used_for_prepare_data = 'C:\\Users\\admin\\Desktop\\LJSpeech-1.1'
output_path_used_for_prepare_data = 'C:\\Users\\admin\\Desktop\\LJSpeech-1.1'