NekoMikoReimu commited on
Commit
f95cdd5
·
verified ·
1 Parent(s): 70fa63e

Upload 2 files

Browse files
Files changed (2) hide show
  1. 2nd_phase_last.pth +3 -0
  2. config_kanade_30_epochs.yml +118 -0
2nd_phase_last.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8375c9224a406cb9c9440feaaf62f3554128b42470ecff75dc78e0beb56a8e4
3
+ size 2044662894
config_kanade_30_epochs.yml ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ log_dir: "Models/LibriTTS-test"
2
+ first_stage_path: "epoch_1st_00040.pth" #This is the path within the models/log_dir, not the relative path from where it's being run.
3
+ save_freq: 10
4
+ log_interval: 10
5
+ device: "cuda"
6
+ epochs_1st: 50 # number of epochs for first stage training (pre-training)
7
+ epochs_2nd: 30 # number of peochs for second stage training (joint training)
8
+ batch_size: 2
9
+ max_len: 512 # maximum number of frames
10
+ second_stage_load_pretrained: false # set to true if the pre-trained model is for 2nd stage
11
+ load_only_params: false # set to true if do not want to load epoch numbers and optimizer parameters
12
+
13
+ F0_path: "StyleTTS2Utils/JDC/bst.t7"
14
+ ASR_config: "StyleTTS2Utils/ASR/config.yml"
15
+ ASR_path: "StyleTTS2Utils/ASR/epoch_00080.pth"
16
+ PLBERT_dir: 'StyleTTS2Utils/PLBERT/'
17
+
18
+
19
+
20
+ data_params:
21
+ train_data: data_paths/train_data_filtered.txt
22
+ val_data: data_paths/val_data_filtered.txt
23
+ root_path: ""
24
+ OOD_data: data_paths/ood_data_filtered.txt
25
+ min_length: 50 # sample until texts with this size are obtained for OOD texts
26
+
27
+
28
+ preprocess_params:
29
+ sr: 24000
30
+ spect_params:
31
+ n_fft: 2048
32
+ win_length: 1200
33
+ hop_length: 300
34
+
35
+ model_params:
36
+ multispeaker: true
37
+
38
+ dim_in: 64
39
+ hidden_dim: 512
40
+ max_conv_dim: 512
41
+ n_layer: 3
42
+ n_mels: 80
43
+
44
+ n_token: 178 # number of phoneme tokens
45
+ max_dur: 50 # maximum duration of a single phoneme
46
+ style_dim: 128 # style vector size
47
+
48
+ dropout: 0.2
49
+
50
+ decoder:
51
+ type: 'istftnet' # either hifigan or istftnet
52
+ resblock_kernel_sizes: [3,7,11]
53
+ upsample_rates : [10, 6]
54
+ upsample_initial_channel: 512
55
+ resblock_dilation_sizes: [[1,3,5], [1,3,5], [1,3,5]]
56
+ upsample_kernel_sizes: [20, 12]
57
+ gen_istft_n_fft: 20
58
+ gen_istft_hop_size: 5
59
+
60
+
61
+
62
+ # speech language model config
63
+ slm:
64
+ model: 'Respair/Whisper_Large_v2_Encoder_Block' # The model itself is hardcoded, change it through -> losses.py
65
+ sr: 16000 # sampling rate of SLM
66
+ hidden: 1280 # hidden size of SLM
67
+ nlayers: 33 # number of layers of SLM
68
+ initial_channel: 64 # initial channels of SLM discriminator head
69
+
70
+ # style diffusion model config
71
+ diffusion:
72
+ embedding_mask_proba: 0.1
73
+ # transformer config
74
+ transformer:
75
+ num_layers: 3
76
+ num_heads: 8
77
+ head_features: 64
78
+ multiplier: 2
79
+
80
+ # diffusion distribution config
81
+ dist:
82
+ sigma_data: 0.2 # placeholder for estimate_sigma_data set to false
83
+ estimate_sigma_data: true # estimate sigma_data from the current batch if set to true
84
+ mean: -3.0
85
+ std: 1.0
86
+
87
+ loss_params:
88
+ lambda_mel: 10. # mel reconstruction loss
89
+ lambda_gen: 1. # generator loss
90
+ lambda_slm: 1. # slm feature matching loss
91
+
92
+ lambda_mono: 1. # monotonic alignment loss (1st stage, TMA)
93
+ lambda_s2s: 1. # sequence-to-sequence loss (1st stage, TMA)
94
+ TMA_epoch: 5 # TMA starting epoch (1st stage)
95
+
96
+ lambda_F0: 1. # F0 reconstruction loss (2nd stage)
97
+ lambda_norm: 1. # norm reconstruction loss (2nd stage)
98
+ lambda_dur: 1. # duration loss (2nd stage)
99
+ lambda_ce: 20. # duration predictor probability output CE loss (2nd stage)
100
+ lambda_sty: 1. # style reconstruction loss (2nd stage)
101
+ lambda_diff: 1. # score matching loss (2nd stage)
102
+
103
+ diff_epoch: 4 # style diffusion starting epoch (2nd stage)
104
+ joint_epoch: 999 # joint training starting epoch (2nd stage)
105
+
106
+ optimizer_params:
107
+ lr: 0.00005 # general learning rate
108
+ bert_lr: 0.00001 # learning rate for PLBERT
109
+ ft_lr: 0.00001 # learning rate for acoustic modules
110
+
111
+ slmadv_params:
112
+ min_len: 400 # minimum length of samples
113
+ max_len: 500 # maximum length of samples
114
+ batch_percentage: 0.5 # to prevent out of memory, only use half of the original batch size
115
+ iter: 20 # update the discriminator every this iterations of generator update
116
+ thresh: 5 # gradient norm above which the gradient is scaled
117
+ scale: 0.01 # gradient scaling factor for predictors from SLM discriminators
118
+ sig: 1.5 # sigma for differentiable duration modeling