Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

priority of EvalIterHook shold be lower then IterTimerHook #473

Merged
merged 3 commits into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mmedit/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ def _non_dist_train(model,
data_loader = build_dataloader(dataset, **val_loader_cfg)
save_path = osp.join(cfg.work_dir, 'val_visuals')
runner.register_hook(
EvalIterHook(data_loader, save_path=save_path, **cfg.evaluation))
EvalIterHook(data_loader, save_path=save_path, **cfg.evaluation),
priority='LOW')

# user-defined hooks
if cfg.get('custom_hooks', None):
Expand Down