diff --git a/open_seq2seq/data/text2speech/text2speech.py b/open_seq2seq/data/text2speech/text2speech.py index 0f6b9d1b2..73fc82c43 100644 --- a/open_seq2seq/data/text2speech/text2speech.py +++ b/open_seq2seq/data/text2speech/text2speech.py @@ -320,7 +320,7 @@ def build_graph(self): num_parallel_calls=8, ) if (self.params.get("duration_max", None) or - self.params.get("duration_max", None)): + self.params.get("duration_min", None)): self._dataset = self._dataset.filter( lambda txt, txt_len, spec, stop, spec_len: tf.logical_and(