Shortcuts

mmagic.engine.runner.loop_utils

Module Contents

Functions

update_and_check_evaluator(...)

Check the whether the evaluator instance or dict config is Evaluator. If

is_evaluator(→ bool)

Check whether the input is a valid evaluator config or Evaluator object.

Attributes

EVALUATOR_TYPE

mmagic.engine.runner.loop_utils.EVALUATOR_TYPE[source]
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.

mmagic.engine.runner.loop_utils.is_evaluator(evaluator: Any) bool[source]

Check whether the input is a valid evaluator config or Evaluator object.

Parameters

evaluator (Any) – The input to check.

Returns

Whether the input is a valid evaluator config or Evaluator

object.

Return type

bool

Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.