Skip to content

Commit

Permalink
avoid getting undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mjamroz authored and rwightman committed Oct 23, 2023
1 parent 89ba0da commit 7a63691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions timm/models/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def resume_checkpoint(
if 'version' in checkpoint and checkpoint['version'] > 1:
resume_epoch += 1 # start at the next epoch, old checkpoints incremented before save

if log_info:
_logger.info("Loaded checkpoint '{}' (epoch {})".format(checkpoint_path, checkpoint['epoch']))
if log_info:
_logger.info("Loaded checkpoint '{}' (epoch {})".format(checkpoint_path, checkpoint['epoch']))
else:
model.load_state_dict(checkpoint)
if log_info:
Expand Down

0 comments on commit 7a63691

Please sign in to comment.