From df945fa253c69d71692100e1a136c0fefe66e0ef Mon Sep 17 00:00:00 2001 From: Anna Date: Sat, 7 Oct 2023 23:06:07 -0700 Subject: [PATCH] Only log "changing autoresume" when actually changing (#653) --- scripts/train/train.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/train/train.py b/scripts/train/train.py index b31c15467e..7358d58d2e 100644 --- a/scripts/train/train.py +++ b/scripts/train/train.py @@ -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,