From f22002ec081b53f7336e804ac788fc7f39343722 Mon Sep 17 00:00:00 2001 From: t chan <282654568@qq.com> Date: Wed, 12 Apr 2023 14:09:55 +0800 Subject: [PATCH] Fix] Fix three typos in runner (#1068) --- mmengine/runner/runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mmengine/runner/runner.py b/mmengine/runner/runner.py index 89004fc6..e5b2f755 100644 --- a/mmengine/runner/runner.py +++ b/mmengine/runner/runner.py @@ -1459,7 +1459,7 @@ class Runner: return loop elif not isinstance(loop, dict): raise TypeError( - f'loop should be a Loop object or dict, but got {loop}') + f'train_loop should be a Loop object or dict, but got {loop}') loop_cfg = copy.deepcopy(loop) @@ -1505,7 +1505,7 @@ class Runner: return loop elif not isinstance(loop, dict): raise TypeError( - f'train_loop should be a Loop object or dict, but got {loop}') + f'val_loop should be a Loop object or dict, but got {loop}') loop_cfg = copy.deepcopy(loop) @@ -1547,7 +1547,7 @@ class Runner: return loop elif not isinstance(loop, dict): raise TypeError( - f'train_loop should be a Loop object or dict, but got {loop}') + f'test_loop should be a Loop object or dict, but got {loop}') loop_cfg = copy.deepcopy(loop) # type: ignore -- GitLab