Skip to content

Commit

Permalink
dump config (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeakey authored Jan 10, 2023
1 parent 6ac402e commit 5a09a5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def main():

# create work_dir
mmcv.mkdir_or_exist(osp.abspath(cfg.work_dir))
# dump config
cfg.dump(osp.join(cfg.work_dir, osp.basename(args.config)))
# init the logger before other steps
timestamp = time.strftime('%Y%m%d_%H%M%S', time.localtime())
log_file = osp.join(cfg.work_dir, f'{timestamp}.log')
Expand Down

0 comments on commit 5a09a5b

Please # to comment.