From 8213ad8b5f9fd58897a0be131c9304fe466088a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Thu, 27 May 2021 10:25:25 +0200 Subject: [PATCH] update aling_tts_config for the trainer --- TTS/tts/configs/align_tts_config.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/TTS/tts/configs/align_tts_config.py b/TTS/tts/configs/align_tts_config.py index 2956d935..115e969c 100644 --- a/TTS/tts/configs/align_tts_config.py +++ b/TTS/tts/configs/align_tts_config.py @@ -92,13 +92,24 @@ class AlignTTSConfig(BaseTTSConfig): external_speaker_embedding_file: str = False # optimizer parameters - noam_schedule: bool = False - warmup_steps: int = 4000 + optimizer: str = "Adam" + optimizer_params: dict = field(default_factory=lambda: {'betas': [0.9, 0.998], 'weight_decay': 1e-6}) + lr_scheduler: str = None + lr_scheduler_params: dict = None lr: float = 1e-4 - wd: float = 1e-6 grad_clip: float = 5.0 # overrides min_seq_len: int = 13 max_seq_len: int = 200 r: int = 1 + + # testing + test_sentences: List[str] = field(default_factory=lambda:[ + "It took me quite a long time to develop a voice, and now that I have it I'm not going to be silent.", + "Be a voice, not an echo.", + "I'm sorry Dave. I'm afraid I can't do that.", + "This cake is great. It's so delicious and moist.", + "Prior to November 22, 1963." + ]) +