Skip to content
Snippets Groups Projects
Commit b539a43d authored by Junjun2016's avatar Junjun2016 Committed by GitHub
Browse files

[Fix] Fix the log error (#766)

* set the priority of EvalHook to LOW

* add comment for priority change

* fix comment
parent 6ee41991
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,10 @@ def train_segmentor(model, ...@@ -107,7 +107,10 @@ def train_segmentor(model,
eval_cfg = cfg.get('evaluation', {}) eval_cfg = cfg.get('evaluation', {})
eval_cfg['by_epoch'] = cfg.runner['type'] != 'IterBasedRunner' eval_cfg['by_epoch'] = cfg.runner['type'] != 'IterBasedRunner'
eval_hook = DistEvalHook if distributed else EvalHook eval_hook = DistEvalHook if distributed else EvalHook
runner.register_hook(eval_hook(val_dataloader, **eval_cfg)) # In this PR (https://github.com/open-mmlab/mmcv/pull/1193), the
# priority of IterTimerHook has been modified from 'NORMAL' to 'LOW'.
runner.register_hook(
eval_hook(val_dataloader, **eval_cfg), priority='LOW')
if cfg.resume_from: if cfg.resume_from:
runner.resume(cfg.resume_from) runner.resume(cfg.resume_from)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment