Skip to content

Commit

Permalink
fix(utils): fix typo in checkpoint save/load log message
Browse files Browse the repository at this point in the history
  • Loading branch information
Scorpi committed Apr 30, 2023
1 parent ed3240a commit fbf9da3
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 fbf9da3

Please sign in to comment.