Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- best_model.pth +3 -0
- best_model_1971988.pth +3 -0
- checkpoint_2160000.pth +3 -0
- checkpoint_2161000.pth +3 -0
- checkpoint_2162000.pth +3 -0
- checkpoint_2163000.pth +3 -0
- checkpoint_2164000.pth +3 -0
- config.json +268 -0
- events-Copy1.out.tfevents.1696079291.ip-172-16-103-40.ec2.internal.39421.0 +3 -0
- events.out.tfevents.1696079291.ip-172-16-103-40.ec2.internal.39421.0 +3 -0
- speech.wav +3 -0
- train_vits.py +92 -0
- trainer_0_log.txt +3 -0
- trainer_1_log.txt +0 -0
- trainer_2_log.txt +0 -0
- trainer_3_log.txt +0 -0
- trainer_4_log.txt +0 -0
- trainer_5_log.txt +0 -0
- trainer_6_log.txt +0 -0
- trainer_7_log.txt +0 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
speech.wav filter=lfs diff=lfs merge=lfs -text
|
37 |
+
trainer_0_log.txt filter=lfs diff=lfs merge=lfs -text
|
best_model.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:063534407f72663793d9ff35caf16707d6fd304d2be35f41b1ae3e23990eb0a4
|
3 |
+
size 997870917
|
best_model_1971988.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:063534407f72663793d9ff35caf16707d6fd304d2be35f41b1ae3e23990eb0a4
|
3 |
+
size 997870917
|
checkpoint_2160000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6d38642db7cfcce0b227cafcedbb2e913eb4f29a8354a76df86266885ff2fe53
|
3 |
+
size 997870917
|
checkpoint_2161000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:351b9d7a026bbcf89e9758f21443974136b1958d44621c7ef6f9f0482b86ec95
|
3 |
+
size 997870917
|
checkpoint_2162000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a02d78424f5ef0265be461e84f2d1cbc49fb8c903aba395e9f571193ed4c56e2
|
3 |
+
size 997870917
|
checkpoint_2163000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a1f90fc1dc09a5294ee438aae75de0bd93598b29eefa330dc2f068ad36e3a9d
|
3 |
+
size 997870917
|
checkpoint_2164000.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b756e1692fd67f91ef87ab9dff4050d73e4de465487ab654c56dc9cd68b720bb
|
3 |
+
size 988135424
|
config.json
ADDED
@@ -0,0 +1,268 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"output_path": "/home/ec2-user/SageMaker/TTS/recipes/ljspeech/vits_tts",
|
3 |
+
"logger_uri": null,
|
4 |
+
"run_name": "pralok",
|
5 |
+
"project_name": null,
|
6 |
+
"run_description": "\ud83d\udc38Coqui trainer run.",
|
7 |
+
"print_step": 25,
|
8 |
+
"plot_step": 100,
|
9 |
+
"model_param_stats": false,
|
10 |
+
"wandb_entity": null,
|
11 |
+
"dashboard_logger": "tensorboard",
|
12 |
+
"save_on_interrupt": true,
|
13 |
+
"log_model_step": null,
|
14 |
+
"save_step": 1000,
|
15 |
+
"save_n_checkpoints": 4,
|
16 |
+
"save_checkpoints": true,
|
17 |
+
"save_all_best": false,
|
18 |
+
"save_best_after": 1000,
|
19 |
+
"target_loss": null,
|
20 |
+
"print_eval": true,
|
21 |
+
"test_delay_epochs": -1,
|
22 |
+
"run_eval": true,
|
23 |
+
"run_eval_steps": null,
|
24 |
+
"distributed_backend": "nccl",
|
25 |
+
"distributed_url": "tcp://localhost:54321",
|
26 |
+
"mixed_precision": false,
|
27 |
+
"precision": "fp16",
|
28 |
+
"epochs": 100000,
|
29 |
+
"batch_size": 10,
|
30 |
+
"eval_batch_size": 12,
|
31 |
+
"grad_clip": [
|
32 |
+
1000,
|
33 |
+
1000
|
34 |
+
],
|
35 |
+
"scheduler_after_epoch": true,
|
36 |
+
"lr": 0.001,
|
37 |
+
"optimizer": "AdamW",
|
38 |
+
"optimizer_params": {
|
39 |
+
"betas": [
|
40 |
+
0.8,
|
41 |
+
0.99
|
42 |
+
],
|
43 |
+
"eps": 1e-09,
|
44 |
+
"weight_decay": 0.01
|
45 |
+
},
|
46 |
+
"lr_scheduler": null,
|
47 |
+
"lr_scheduler_params": null,
|
48 |
+
"use_grad_scaler": false,
|
49 |
+
"allow_tf32": false,
|
50 |
+
"cudnn_enable": true,
|
51 |
+
"cudnn_deterministic": false,
|
52 |
+
"cudnn_benchmark": false,
|
53 |
+
"training_seed": 54321,
|
54 |
+
"model": "vits",
|
55 |
+
"num_loader_workers": 4,
|
56 |
+
"num_eval_loader_workers": 4,
|
57 |
+
"use_noise_augment": false,
|
58 |
+
"audio": {
|
59 |
+
"fft_size": 1024,
|
60 |
+
"sample_rate": 48000,
|
61 |
+
"win_length": 1024,
|
62 |
+
"hop_length": 256,
|
63 |
+
"num_mels": 80,
|
64 |
+
"mel_fmin": 0,
|
65 |
+
"mel_fmax": null
|
66 |
+
},
|
67 |
+
"use_phonemes": true,
|
68 |
+
"phonemizer": "espeak",
|
69 |
+
"phoneme_language": "en-us",
|
70 |
+
"compute_input_seq_cache": true,
|
71 |
+
"text_cleaner": "multilingual_cleaners",
|
72 |
+
"enable_eos_bos_chars": false,
|
73 |
+
"test_sentences_file": "",
|
74 |
+
"phoneme_cache_path": "/home/ec2-user/SageMaker/TTS/recipes/ljspeech/vits_tts/phoneme_cache",
|
75 |
+
"characters": {
|
76 |
+
"characters_class": "TTS.tts.utils.text.characters.IPAPhonemes",
|
77 |
+
"vocab_dict": null,
|
78 |
+
"pad": "<PAD>",
|
79 |
+
"eos": "<EOS>",
|
80 |
+
"bos": "<BOS>",
|
81 |
+
"blank": "<BLNK>",
|
82 |
+
"characters": "iy\u0268\u0289\u026fu\u026a\u028f\u028ae\u00f8\u0258\u0259\u0275\u0264o\u025b\u0153\u025c\u025e\u028c\u0254\u00e6\u0250a\u0276\u0251\u0252\u1d7b\u0298\u0253\u01c0\u0257\u01c3\u0284\u01c2\u0260\u01c1\u029bpbtd\u0288\u0256c\u025fk\u0261q\u0262\u0294\u0274\u014b\u0272\u0273n\u0271m\u0299r\u0280\u2c71\u027e\u027d\u0278\u03b2fv\u03b8\u00f0sz\u0283\u0292\u0282\u0290\u00e7\u029dx\u0263\u03c7\u0281\u0127\u0295h\u0266\u026c\u026e\u028b\u0279\u027bj\u0270l\u026d\u028e\u029f\u02c8\u02cc\u02d0\u02d1\u028dw\u0265\u029c\u02a2\u02a1\u0255\u0291\u027a\u0267\u02b2\u025a\u02de\u026b",
|
83 |
+
"punctuations": "!'(),-.:;? ",
|
84 |
+
"phonemes": null,
|
85 |
+
"is_unique": false,
|
86 |
+
"is_sorted": true
|
87 |
+
},
|
88 |
+
"add_blank": true,
|
89 |
+
"batch_group_size": 4,
|
90 |
+
"loss_masking": null,
|
91 |
+
"min_audio_len": 1,
|
92 |
+
"max_audio_len": Infinity,
|
93 |
+
"min_text_len": 1,
|
94 |
+
"max_text_len": Infinity,
|
95 |
+
"compute_f0": false,
|
96 |
+
"compute_energy": false,
|
97 |
+
"compute_linear_spec": true,
|
98 |
+
"precompute_num_workers": 0,
|
99 |
+
"start_by_longest": false,
|
100 |
+
"shuffle": false,
|
101 |
+
"drop_last": false,
|
102 |
+
"datasets": [
|
103 |
+
{
|
104 |
+
"formatter": "ljspeech",
|
105 |
+
"dataset_name": "",
|
106 |
+
"path": "/home/ec2-user/SageMaker/TTS/recipes/ljspeech/vits_tts/prateek",
|
107 |
+
"meta_file_train": "metadata.csv",
|
108 |
+
"ignored_speakers": null,
|
109 |
+
"language": "",
|
110 |
+
"phonemizer": "",
|
111 |
+
"meta_file_val": "",
|
112 |
+
"meta_file_attn_mask": ""
|
113 |
+
}
|
114 |
+
],
|
115 |
+
"test_sentences": [
|
116 |
+
[
|
117 |
+
"It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent."
|
118 |
+
],
|
119 |
+
[
|
120 |
+
"Be a voice, not an echo."
|
121 |
+
],
|
122 |
+
[
|
123 |
+
"I'm sorry Dave. I'm afraid I can't do that."
|
124 |
+
],
|
125 |
+
[
|
126 |
+
"This cake is great. It's so delicious and moist."
|
127 |
+
],
|
128 |
+
[
|
129 |
+
"Prior to November 22, 1963."
|
130 |
+
]
|
131 |
+
],
|
132 |
+
"eval_split_max_size": null,
|
133 |
+
"eval_split_size": 0.01,
|
134 |
+
"use_speaker_weighted_sampler": false,
|
135 |
+
"speaker_weighted_sampler_alpha": 1.0,
|
136 |
+
"use_language_weighted_sampler": false,
|
137 |
+
"language_weighted_sampler_alpha": 1.0,
|
138 |
+
"use_length_weighted_sampler": false,
|
139 |
+
"length_weighted_sampler_alpha": 1.0,
|
140 |
+
"model_args": {
|
141 |
+
"num_chars": 131,
|
142 |
+
"out_channels": 513,
|
143 |
+
"spec_segment_size": 32,
|
144 |
+
"hidden_channels": 192,
|
145 |
+
"hidden_channels_ffn_text_encoder": 768,
|
146 |
+
"num_heads_text_encoder": 2,
|
147 |
+
"num_layers_text_encoder": 6,
|
148 |
+
"kernel_size_text_encoder": 3,
|
149 |
+
"dropout_p_text_encoder": 0.1,
|
150 |
+
"dropout_p_duration_predictor": 0.5,
|
151 |
+
"kernel_size_posterior_encoder": 5,
|
152 |
+
"dilation_rate_posterior_encoder": 1,
|
153 |
+
"num_layers_posterior_encoder": 16,
|
154 |
+
"kernel_size_flow": 5,
|
155 |
+
"dilation_rate_flow": 1,
|
156 |
+
"num_layers_flow": 4,
|
157 |
+
"resblock_type_decoder": "1",
|
158 |
+
"resblock_kernel_sizes_decoder": [
|
159 |
+
3,
|
160 |
+
7,
|
161 |
+
11
|
162 |
+
],
|
163 |
+
"resblock_dilation_sizes_decoder": [
|
164 |
+
[
|
165 |
+
1,
|
166 |
+
3,
|
167 |
+
5
|
168 |
+
],
|
169 |
+
[
|
170 |
+
1,
|
171 |
+
3,
|
172 |
+
5
|
173 |
+
],
|
174 |
+
[
|
175 |
+
1,
|
176 |
+
3,
|
177 |
+
5
|
178 |
+
]
|
179 |
+
],
|
180 |
+
"upsample_rates_decoder": [
|
181 |
+
8,
|
182 |
+
8,
|
183 |
+
2,
|
184 |
+
2
|
185 |
+
],
|
186 |
+
"upsample_initial_channel_decoder": 512,
|
187 |
+
"upsample_kernel_sizes_decoder": [
|
188 |
+
16,
|
189 |
+
16,
|
190 |
+
4,
|
191 |
+
4
|
192 |
+
],
|
193 |
+
"periods_multi_period_discriminator": [
|
194 |
+
2,
|
195 |
+
3,
|
196 |
+
5,
|
197 |
+
7,
|
198 |
+
11
|
199 |
+
],
|
200 |
+
"use_sdp": true,
|
201 |
+
"noise_scale": 1.0,
|
202 |
+
"inference_noise_scale": 0.667,
|
203 |
+
"length_scale": 1,
|
204 |
+
"noise_scale_dp": 1.0,
|
205 |
+
"inference_noise_scale_dp": 1.0,
|
206 |
+
"max_inference_len": null,
|
207 |
+
"init_discriminator": true,
|
208 |
+
"use_spectral_norm_disriminator": false,
|
209 |
+
"use_speaker_embedding": false,
|
210 |
+
"num_speakers": 0,
|
211 |
+
"speakers_file": null,
|
212 |
+
"d_vector_file": null,
|
213 |
+
"speaker_embedding_channels": 256,
|
214 |
+
"use_d_vector_file": false,
|
215 |
+
"d_vector_dim": 0,
|
216 |
+
"detach_dp_input": true,
|
217 |
+
"use_language_embedding": false,
|
218 |
+
"embedded_language_dim": 4,
|
219 |
+
"num_languages": 0,
|
220 |
+
"language_ids_file": null,
|
221 |
+
"use_speaker_encoder_as_loss": false,
|
222 |
+
"speaker_encoder_config_path": "",
|
223 |
+
"speaker_encoder_model_path": "",
|
224 |
+
"condition_dp_on_speaker": true,
|
225 |
+
"freeze_encoder": false,
|
226 |
+
"freeze_DP": false,
|
227 |
+
"freeze_PE": false,
|
228 |
+
"freeze_flow_decoder": false,
|
229 |
+
"freeze_waveform_decoder": false,
|
230 |
+
"encoder_sample_rate": null,
|
231 |
+
"interpolate_z": true,
|
232 |
+
"reinit_DP": false,
|
233 |
+
"reinit_text_encoder": false
|
234 |
+
},
|
235 |
+
"lr_gen": 0.0002,
|
236 |
+
"lr_disc": 0.0002,
|
237 |
+
"lr_scheduler_gen": "ExponentialLR",
|
238 |
+
"lr_scheduler_gen_params": {
|
239 |
+
"gamma": 0.999875,
|
240 |
+
"last_epoch": -1
|
241 |
+
},
|
242 |
+
"lr_scheduler_disc": "ExponentialLR",
|
243 |
+
"lr_scheduler_disc_params": {
|
244 |
+
"gamma": 0.999875,
|
245 |
+
"last_epoch": -1
|
246 |
+
},
|
247 |
+
"kl_loss_alpha": 1.0,
|
248 |
+
"disc_loss_alpha": 1.0,
|
249 |
+
"gen_loss_alpha": 1.0,
|
250 |
+
"feat_loss_alpha": 1.0,
|
251 |
+
"mel_loss_alpha": 45.0,
|
252 |
+
"dur_loss_alpha": 1.0,
|
253 |
+
"speaker_encoder_loss_alpha": 1.0,
|
254 |
+
"return_wav": true,
|
255 |
+
"use_weighted_sampler": false,
|
256 |
+
"weighted_sampler_attrs": null,
|
257 |
+
"weighted_sampler_multipliers": null,
|
258 |
+
"r": 1,
|
259 |
+
"num_speakers": 0,
|
260 |
+
"use_speaker_embedding": false,
|
261 |
+
"speakers_file": null,
|
262 |
+
"speaker_embedding_channels": 256,
|
263 |
+
"language_ids_file": null,
|
264 |
+
"use_language_embedding": false,
|
265 |
+
"use_d_vector_file": false,
|
266 |
+
"d_vector_file": null,
|
267 |
+
"d_vector_dim": 0
|
268 |
+
}
|
events-Copy1.out.tfevents.1696079291.ip-172-16-103-40.ec2.internal.39421.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:28438915790be9a459d15d94640d316ee3ef777a9964bef437b6bba39f338f0d
|
3 |
+
size 14454257810
|
events.out.tfevents.1696079291.ip-172-16-103-40.ec2.internal.39421.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa28ce910679c464e1ebad8307b47cecb00e4b27dbba0e81856e27961ec08aeb
|
3 |
+
size 15527645198
|
speech.wav
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c427098bf5eff30462ac4b5cf60e9d386b23e5495f7d12c95e2b956c06ff9b8f
|
3 |
+
size 1343488
|
train_vits.py
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
from trainer import Trainer, TrainerArgs
|
4 |
+
|
5 |
+
from TTS.tts.configs.shared_configs import BaseDatasetConfig
|
6 |
+
from TTS.tts.configs.vits_config import VitsConfig
|
7 |
+
from TTS.tts.datasets import load_tts_samples
|
8 |
+
from TTS.tts.models.vits import Vits, VitsAudioConfig
|
9 |
+
from TTS.tts.utils.text.tokenizer import TTSTokenizer
|
10 |
+
from TTS.utils.audio import AudioProcessor
|
11 |
+
|
12 |
+
#output_path = os.path.dirname(os.path.abspath(__file__))
|
13 |
+
##########################################
|
14 |
+
#Change this to your dataset directory
|
15 |
+
##########################################
|
16 |
+
output_path = os.path.dirname(os.path.abspath(__file__))
|
17 |
+
dataset_config = BaseDatasetConfig(
|
18 |
+
##########################################
|
19 |
+
#Change this to your dataset directory
|
20 |
+
##########################################
|
21 |
+
formatter="ljspeech", meta_file_train="metadata.csv", path="/home/ec2-user/SageMaker/TTS/recipes/ljspeech/vits_tts/prateek"
|
22 |
+
|
23 |
+
)
|
24 |
+
audio_config = VitsAudioConfig(
|
25 |
+
sample_rate=48000, win_length=1024, hop_length=256, num_mels=80, mel_fmin=0, mel_fmax=None
|
26 |
+
)
|
27 |
+
|
28 |
+
config = VitsConfig(
|
29 |
+
audio=audio_config,
|
30 |
+
run_name="pralok",
|
31 |
+
batch_size=10,
|
32 |
+
eval_batch_size=12,
|
33 |
+
batch_group_size=4,
|
34 |
+
# num_loader_workers=8,
|
35 |
+
num_loader_workers=4,
|
36 |
+
num_eval_loader_workers=4,
|
37 |
+
run_eval=True,
|
38 |
+
test_delay_epochs=-1,
|
39 |
+
epochs=100000,
|
40 |
+
save_step=1000,
|
41 |
+
save_checkpoints=True,
|
42 |
+
save_n_checkpoints=4,
|
43 |
+
save_best_after=1000,
|
44 |
+
#text_cleaner="english_cleaners",
|
45 |
+
text_cleaner="multilingual_cleaners",
|
46 |
+
use_phonemes=True,
|
47 |
+
phoneme_language="en-us",
|
48 |
+
phoneme_cache_path=os.path.join(output_path, "phoneme_cache"),
|
49 |
+
compute_input_seq_cache=True,
|
50 |
+
print_step=25,
|
51 |
+
print_eval=True,
|
52 |
+
mixed_precision=False,
|
53 |
+
output_path=output_path,
|
54 |
+
datasets=[dataset_config],
|
55 |
+
cudnn_benchmark=False,
|
56 |
+
)
|
57 |
+
|
58 |
+
# INITIALIZE THE AUDIO PROCESSOR
|
59 |
+
# Audio processor is used for feature extraction and audio I/O.
|
60 |
+
# It mainly serves to the dataloader and the training loggers.
|
61 |
+
ap = AudioProcessor.init_from_config(config)
|
62 |
+
|
63 |
+
# INITIALIZE THE TOKENIZER
|
64 |
+
# Tokenizer is used to convert text to sequences of token IDs.
|
65 |
+
# config is updated with the default characters if not defined in the config.
|
66 |
+
tokenizer, config = TTSTokenizer.init_from_config(config)
|
67 |
+
|
68 |
+
# LOAD DATA SAMPLES
|
69 |
+
# Each sample is a list of ```[text, audio_file_path, speaker_name]```
|
70 |
+
# You can define your custom sample loader returning the list of samples.
|
71 |
+
# Or define your custom formatter and pass it to the `load_tts_samples`.
|
72 |
+
# Check `TTS.tts.datasets.load_tts_samples` for more details.
|
73 |
+
train_samples, eval_samples = load_tts_samples(
|
74 |
+
dataset_config,
|
75 |
+
eval_split=True,
|
76 |
+
eval_split_max_size=config.eval_split_max_size,
|
77 |
+
eval_split_size=config.eval_split_size,
|
78 |
+
)
|
79 |
+
|
80 |
+
# init model
|
81 |
+
model = Vits(config, ap, tokenizer, speaker_manager=None)
|
82 |
+
|
83 |
+
# init the trainer and begin
|
84 |
+
trainer = Trainer(
|
85 |
+
TrainerArgs(),
|
86 |
+
config,
|
87 |
+
output_path,
|
88 |
+
model=model,
|
89 |
+
train_samples=train_samples,
|
90 |
+
eval_samples=eval_samples,
|
91 |
+
)
|
92 |
+
trainer.fit()
|
trainer_0_log.txt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a22aae1d95a10adcd2dfc4f84802c500c6cb199bd443c8c31e8253cbddeed2c3
|
3 |
+
size 26422352
|
trainer_1_log.txt
ADDED
File without changes
|
trainer_2_log.txt
ADDED
File without changes
|
trainer_3_log.txt
ADDED
File without changes
|
trainer_4_log.txt
ADDED
File without changes
|
trainer_5_log.txt
ADDED
File without changes
|
trainer_6_log.txt
ADDED
File without changes
|
trainer_7_log.txt
ADDED
File without changes
|