diff --git a/mmengine/runner/runner.py b/mmengine/runner/runner.py index 89004fc6dbd1dbeba15c5462142211a08d3d05c5..e5b2f755d07afad2cf6556bf89dcf65606cfcf88 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