Skip to content

Commit af88b86

Browse files
authored
fix log repeat (open-mmlab#1267)
1 parent f599d38 commit af88b86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/train.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ def main():
109109
if args.cfg_options is not None:
110110
cfg.merge_from_dict(args.cfg_options)
111111

112-
# set multi-process settings
113-
setup_multi_processes(cfg)
114-
115112
# set cudnn_benchmark
116113
if cfg.get('cudnn_benchmark', False):
117114
torch.backends.cudnn.benchmark = True
@@ -163,6 +160,9 @@ def main():
163160
log_file = osp.join(cfg.work_dir, f'{timestamp}.log')
164161
logger = get_root_logger(log_file=log_file, log_level=cfg.log_level)
165162

163+
# set multi-process settings
164+
setup_multi_processes(cfg)
165+
166166
# init the meta dict to record some important information such as
167167
# environment info and seed, which will be logged
168168
meta = dict()

0 commit comments

Comments
 (0)