mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
fix log repeat (#1267)
This commit is contained in:
parent
8a33102d14
commit
0d978a8822
@ -109,9 +109,6 @@ def main():
|
|||||||
if args.cfg_options is not None:
|
if args.cfg_options is not None:
|
||||||
cfg.merge_from_dict(args.cfg_options)
|
cfg.merge_from_dict(args.cfg_options)
|
||||||
|
|
||||||
# set multi-process settings
|
|
||||||
setup_multi_processes(cfg)
|
|
||||||
|
|
||||||
# set cudnn_benchmark
|
# set cudnn_benchmark
|
||||||
if cfg.get('cudnn_benchmark', False):
|
if cfg.get('cudnn_benchmark', False):
|
||||||
torch.backends.cudnn.benchmark = True
|
torch.backends.cudnn.benchmark = True
|
||||||
@ -163,6 +160,9 @@ def main():
|
|||||||
log_file = osp.join(cfg.work_dir, f'{timestamp}.log')
|
log_file = osp.join(cfg.work_dir, f'{timestamp}.log')
|
||||||
logger = get_root_logger(log_file=log_file, log_level=cfg.log_level)
|
logger = get_root_logger(log_file=log_file, log_level=cfg.log_level)
|
||||||
|
|
||||||
|
# set multi-process settings
|
||||||
|
setup_multi_processes(cfg)
|
||||||
|
|
||||||
# init the meta dict to record some important information such as
|
# init the meta dict to record some important information such as
|
||||||
# environment info and seed, which will be logged
|
# environment info and seed, which will be logged
|
||||||
meta = dict()
|
meta = dict()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user