Skip to content

Commit

Permalink
fix(utils): fix epoch variable name to log in checkpoint save/load fu…
Browse files Browse the repository at this point in the history
…nctions (#519)
  • Loading branch information
Scorpi committed Apr 30, 2023
1 parent a829a05 commit 0530ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/so_vits_svc_fork/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def load_checkpoint(
warnings.simplefilter("ignore")
safe_load(optimizer, checkpoint_dict["optimizer"])

LOG.info(f"Loaded checkpoint '{checkpoint_path}' (iteration {iteration})")
LOG.info(f"Loaded checkpoint '{checkpoint_path}' (epoch {iteration})")
return model, optimizer, learning_rate, iteration


Expand All @@ -268,7 +268,7 @@ def save_checkpoint(
checkpoint_path: Path | str,
) -> None:
LOG.info(
"Saving model and optimizer state at iteration {} to {}".format(
"Saving model and optimizer state at epoch {} to {}".format(
iteration, checkpoint_path
)
)
Expand Down

0 comments on commit 0530ea3

Please sign in to comment.