mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
bug fix
This commit is contained in:
1 parent
adaeec57ec
commit
547bfc4ce9
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user