Skip to content

Commit

Permalink
add config dump in training (open-mmlab#2779)
Browse files Browse the repository at this point in the history
  • Loading branch information
xvjiarui authored May 20, 2020
1 parent 3b908f5 commit 227d338
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 @@ -100,6 +100,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 227d338

Please sign in to comment.