fix: E722

This commit is contained in:
magic-akari 2023-07-06 23:38:02 +08:00
parent 014986f2e3
commit 136b230850
No known key found for this signature in database
GPG Key ID: EC005B1159285BDD
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ def run(rank, n_gpus, hps):
name=utils.latest_checkpoint_path(hps.model_dir, "D_*.pth")
global_step=int(name[name.rfind("_")+1:name.rfind(".")])+1
#global_step = (epoch_str - 1) * len(train_loader)
except AssertionError:
except Exception:
print("load old checkpoint failed...")
epoch_str = 1
global_step = 0