Skip to content

Commit

Permalink
update default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
westny committed May 7, 2024
1 parent f361f0a commit ac7080f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def str_to_bool(value: bool | str) -> bool:
parser.add_argument('--persistent-workers', type=str_to_bool, default=True,
const=True, nargs="?",
help='if persistent workers should be used (default: True)')
parser.add_argument('--store-model', type=str_to_bool, default=False,
parser.add_argument('--store-model', type=str_to_bool, default=True,
const=True, nargs="?",
help='if checkpoints should be stored (default: False)')
help='if checkpoints should be stored (default: True)')
parser.add_argument('--store-samples', type=str_to_bool, default=False,
const=True, nargs="?",
help='if samples should be stored (default: False)')
Expand Down
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main(save_name: str) -> None:

# Setup callbacks list for training
callback_list: list[Callback] = []
if args.store_model:
if args.store_model and not args.dry_run:
ckpt_cb = ModelCheckpoint(
dirpath=str(ckpt_path.parent), # Using parent directory of the checkpoint
filename=save_name + "_{epoch:02d}",
Expand Down

0 comments on commit ac7080f

Please sign in to comment.