From 6e3f74fc2927892b5575d33e4df757e6d9f19fd3 Mon Sep 17 00:00:00 2001 From: Eren G??lge Date: Sun, 15 Jan 2023 23:11:57 +0100 Subject: [PATCH] Fix #2191 --- TTS/tts/models/base_tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/models/base_tts.py b/TTS/tts/models/base_tts.py index 58d740d2..69980e72 100644 --- a/TTS/tts/models/base_tts.py +++ b/TTS/tts/models/base_tts.py @@ -345,7 +345,7 @@ class BaseTTS(BaseTrainerModel): loader = DataLoader( dataset, batch_size=config.eval_batch_size if is_eval else config.batch_size, - shuffle=config.shuffle if sampler is not None else False, # if there is no other sampler + shuffle=config.shuffle if sampler is None else False, # if there is no other sampler collate_fn=dataset.collate_fn, drop_last=config.drop_last, # setting this False might cause issues in AMP training. sampler=sampler,