Undo forced text padding

This commit is contained in:
James Betker 2021-08-08 11:42:20 -06:00
parent 690d7e86d3
commit 83ab5e6a00

View File

@ -57,8 +57,7 @@ class GptTtsCollater():
def __call__(self, batch): def __call__(self, batch):
text_lens = [len(x[0]) for x in 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] mel_lens = [len(x[1]) for x in batch]
max_mel_len = max(mel_lens) max_mel_len = max(mel_lens)
texts = [] texts = []