Skip to content

Commit 9155d9e

Browse files
authored
[Fix] Fix the log error (open-mmlab#766)
* set the priority of EvalHook to LOW * add comment for priority change * fix comment
1 parent 6c26a7f commit 9155d9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mmseg/apis/train.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def train_segmentor(model,
107107
eval_cfg = cfg.get('evaluation', {})
108108
eval_cfg['by_epoch'] = cfg.runner['type'] != 'IterBasedRunner'
109109
eval_hook = DistEvalHook if distributed else EvalHook
110-
runner.register_hook(eval_hook(val_dataloader, **eval_cfg))
110+
# In this PR (https://github.com/open-mmlab/mmcv/pull/1193), the
111+
# priority of IterTimerHook has been modified from 'NORMAL' to 'LOW'.
112+
runner.register_hook(
113+
eval_hook(val_dataloader, **eval_cfg), priority='LOW')
111114

112115
if cfg.resume_from:
113116
runner.resume(cfg.resume_from)

0 commit comments

Comments
 (0)