mmagic.engine.runner.loop_utils
¶
Module Contents¶
Functions¶
Check the whether the evaluator instance or dict config is Evaluator. If |
|
|
Check whether the input is a valid evaluator config or Evaluator object. |
Attributes¶
- mmagic.engine.runner.loop_utils.update_and_check_evaluator(evaluator: EVALUATOR_TYPE) Union[mmengine.evaluator.Evaluator, dict] [source]¶
Check the whether the evaluator instance or dict config is Evaluator. If input is a dict config, attempt to set evaluator type as Evaluator and raised warning if it is not allowed. If input is a Evaluator instance, check whether it is a Evaluator class, otherwise,
- Parameters
evaluator (Union[Evaluator, dict, list]) – The evaluator instance or config dict.