From 547bfc4ce99e7782f98d0403429d15ec23cdc91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20G=C3=B6lge?= Date: Thu, 18 Feb 2021 18:24:03 +0000 Subject: [PATCH] bug fix --- TTS/utils/arguments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/arguments.py b/TTS/utils/arguments.py index bad06262..6a09986c 100644 --- a/TTS/utils/arguments.py +++ b/TTS/utils/arguments.py @@ -94,7 +94,7 @@ def get_last_checkpoint(path): match = re.search(f"{key}_([0-9]+)", file_name) if match is not None: model_num = int(match.groups()[0]) - if model_num > last_model_num or last_model_num is None: + if last_model_num is None or model_num > last_model_num: last_model_num = model_num last_model = file_name