From 74342b860b380d2f60f29478d87319aa08469011 Mon Sep 17 00:00:00 2001 From: James Betker Date: Mon, 9 Aug 2021 11:56:34 -0600 Subject: [PATCH] Revert "Undo forced text padding" This reverts commit 83ab5e6a00960c8eb9de510237e2264dd175a500. --- codes/data/audio/gpt_tts_dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codes/data/audio/gpt_tts_dataset.py b/codes/data/audio/gpt_tts_dataset.py index bd84a281..24a7cee0 100644 --- a/codes/data/audio/gpt_tts_dataset.py +++ b/codes/data/audio/gpt_tts_dataset.py @@ -57,7 +57,8 @@ class GptTtsCollater(): def __call__(self, batch): text_lens = [len(x[0]) for x in batch] - max_text_len = max(text_lens) + #max_text_len = max(text_lens) + max_text_len = self.MAX_SYMBOLS_PER_PHRASE # This forces all outputs to have the full 200 characters. Testing if this makes a difference. mel_lens = [len(x[1]) for x in batch] max_mel_len = max(mel_lens) texts = []