diff --git a/codes/data/audio/gpt_tts_dataset.py b/codes/data/audio/gpt_tts_dataset.py index 24a7cee0..bd84a281 100644 --- a/codes/data/audio/gpt_tts_dataset.py +++ b/codes/data/audio/gpt_tts_dataset.py @@ -57,8 +57,7 @@ class GptTtsCollater(): def __call__(self, batch): text_lens = [len(x[0]) for x in batch] - #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. + max_text_len = max(text_lens) mel_lens = [len(x[1]) for x in batch] max_mel_len = max(mel_lens) texts = []