Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Feb 18, 2021
1 parent adaeec5 commit 547bfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 547bfc4

Please sign in to comment.