Shortcuts

mmengine.registry

Registry

A registry to map strings to classes or functions.

DefaultScope

Scope of current task used to reset the current registry, which can be accessed globally.

build_from_cfg

Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration.

build_model_from_cfg

Build a PyTorch model from config dict(s).

build_runner_from_cfg

Build a Runner object.

build_scheduler_from_cfg

Builds a ParamScheduler instance from config.

count_registered_modules

Scan all modules in MMEngine's root and child registries and dump to json.

traverse_registry_tree

Traverse the whole registry tree from any given node, and collect information of all registered modules in this registry tree.

init_default_scope

Initialize the given default scope.