Skip to content

Commit

Permalink
Only log "changing autoresume" when actually changing (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspfohl authored Oct 8, 2023
1 parent 7fb084a commit df945fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,12 @@ def main(cfg: DictConfig) -> Trainer:
and save_folder is not None \
and not save_overwrite \
and not save_weights_only:
autoresume_default = True

if cfg.get('autoresume') is None and autoresume_default:
print('As run_name, save_folder, and save_latest_filename are set, \
changing autoresume default to True...')
autoresume_default = True

autoresume: bool = pop_config(cfg,
'autoresume',
must_exist=False,
Expand Down

0 comments on commit df945fa

Please sign in to comment.