From 430b650a34991890aa16b85b9c98ebf8de20ce2c Mon Sep 17 00:00:00 2001 From: James Betker Date: Thu, 12 Aug 2021 10:31:10 -0600 Subject: [PATCH] ...... --- codes/data/audio/nv_tacotron_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/data/audio/nv_tacotron_dataset.py b/codes/data/audio/nv_tacotron_dataset.py index 87bbb6d8..af909329 100644 --- a/codes/data/audio/nv_tacotron_dataset.py +++ b/codes/data/audio/nv_tacotron_dataset.py @@ -103,7 +103,7 @@ class TextMelLoader(torch.utils.data.Dataset): reload = False except: reload = True - if reload and self.max_mel_len != None and m.shape[-1] > self.max_mel_len: + if reload or (self.max_mel_len != None and m.shape[-1] > self.max_mel_len): print(f"Exception {index} {reload}") if not reload: print(f"mel_len:{m.shape[-1]} fname: {p}")