Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Linaqruf committed Apr 22, 2023
2 parents ae3965a + 700af1c commit e9a641b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/train_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2754,7 +2754,9 @@ def prepare_accelerator(args: argparse.Namespace):
log_prefix = "" if args.log_prefix is None else args.log_prefix
logging_dir = args.logging_dir + "/" + log_prefix + time.strftime("%Y%m%d%H%M%S", time.localtime())

if args.log_with is not None:
if args.log_with is None:
log_with = None
else:
log_with = args.log_with
if log_with in ["tensorboard", "all"]:
if logging_dir is None:
Expand Down

0 comments on commit e9a641b

Please sign in to comment.