calypso.utils.registry module

ref: MMCV REGISTRY

https://mmcv.readthedocs.io/en/latest/understand_mmcv/registry.html

class calypso.utils.registry.Registry(name)

Bases: Mapping

register_module(module=None, name=None, force=False)

method to register a module

Parameters:
  • module (LazyLoader) – LazyLoader instance of specific module, by default None

  • name (str) – the class name of registry, by default None

  • force (bool, optional) – whether to replace the module in force, by default False

Returns:

module – class of LazyLoader (not instance)

Return type:

LazyLoader