|
|
| """MMAction provides 20 registry nodes to support using modules across
|
| projects. Each node is a child of the root registry in MMEngine.
|
|
|
| More details can be found at
|
| https://mmengine.readthedocs.io/en/latest/tutorials/registry.html.
|
| """
|
|
|
| from mmengine.registry import DATA_SAMPLERS as MMENGINE_DATA_SAMPLERS
|
| from mmengine.registry import DATASETS as MMENGINE_DATASETS
|
| from mmengine.registry import EVALUATOR as MMENGINE_EVALUATOR
|
| from mmengine.registry import FUNCTIONS as MMENGINE_FUNCTION
|
| from mmengine.registry import HOOKS as MMENGINE_HOOKS
|
| from mmengine.registry import INFERENCERS as MMENGINE_INFERENCERS
|
| from mmengine.registry import LOG_PROCESSORS as MMENGINE_LOG_PROCESSORS
|
| from mmengine.registry import LOOPS as MMENGINE_LOOPS
|
| from mmengine.registry import METRICS as MMENGINE_METRICS
|
| from mmengine.registry import MODEL_WRAPPERS as MMENGINE_MODEL_WRAPPERS
|
| from mmengine.registry import MODELS as MMENGINE_MODELS
|
| from mmengine.registry import \
|
| OPTIM_WRAPPER_CONSTRUCTORS as MMENGINE_OPTIM_WRAPPER_CONSTRUCTORS
|
| from mmengine.registry import OPTIM_WRAPPERS as MMENGINE_OPTIM_WRAPPERS
|
| from mmengine.registry import OPTIMIZERS as MMENGINE_OPTIMIZERS
|
| from mmengine.registry import PARAM_SCHEDULERS as MMENGINE_PARAM_SCHEDULERS
|
| from mmengine.registry import \
|
| RUNNER_CONSTRUCTORS as MMENGINE_RUNNER_CONSTRUCTORS
|
| from mmengine.registry import RUNNERS as MMENGINE_RUNNERS
|
| from mmengine.registry import TASK_UTILS as MMENGINE_TASK_UTILS
|
| from mmengine.registry import TRANSFORMS as MMENGINE_TRANSFORMS
|
| from mmengine.registry import VISBACKENDS as MMENGINE_VISBACKENDS
|
| from mmengine.registry import VISUALIZERS as MMENGINE_VISUALIZERS
|
| from mmengine.registry import \
|
| WEIGHT_INITIALIZERS as MMENGINE_WEIGHT_INITIALIZERS
|
| from mmengine.registry import Registry
|
|
|
|
|
| RUNNERS = Registry(
|
| 'runner', parent=MMENGINE_RUNNERS, locations=['mmaction.engine.runner'])
|
|
|
| RUNNER_CONSTRUCTORS = Registry(
|
| 'runner constructor',
|
| parent=MMENGINE_RUNNER_CONSTRUCTORS,
|
| locations=['mmaction.engine.runner'])
|
|
|
| LOOPS = Registry(
|
| 'loop', parent=MMENGINE_LOOPS, locations=['mmaction.engine.runner'])
|
|
|
| HOOKS = Registry(
|
| 'hook', parent=MMENGINE_HOOKS, locations=['mmaction.engine.hooks'])
|
|
|
|
|
| DATASETS = Registry(
|
| 'dataset', parent=MMENGINE_DATASETS, locations=['mmaction.datasets'])
|
| DATA_SAMPLERS = Registry(
|
| 'data sampler',
|
| parent=MMENGINE_DATA_SAMPLERS,
|
| locations=['mmaction.datasets'])
|
| TRANSFORMS = Registry(
|
| 'transform',
|
| parent=MMENGINE_TRANSFORMS,
|
| locations=['mmaction.datasets.transforms'])
|
|
|
|
|
| MODELS = Registry(
|
| 'model', parent=MMENGINE_MODELS, locations=['mmaction.models'])
|
|
|
| MODEL_WRAPPERS = Registry(
|
| 'model_wrapper',
|
| parent=MMENGINE_MODEL_WRAPPERS,
|
| locations=['mmaction.models'])
|
|
|
| WEIGHT_INITIALIZERS = Registry(
|
| 'weight initializer',
|
| parent=MMENGINE_WEIGHT_INITIALIZERS,
|
| locations=['mmaction.models'])
|
|
|
|
|
| OPTIMIZERS = Registry(
|
| 'optimizer',
|
| parent=MMENGINE_OPTIMIZERS,
|
| locations=['mmaction.engine.optimizers'])
|
|
|
| OPTIM_WRAPPERS = Registry(
|
| 'optim_wrapper',
|
| parent=MMENGINE_OPTIM_WRAPPERS,
|
| locations=['mmaction.engine.optimizers'])
|
|
|
| OPTIM_WRAPPER_CONSTRUCTORS = Registry(
|
| 'optimizer wrapper constructor',
|
| parent=MMENGINE_OPTIM_WRAPPER_CONSTRUCTORS,
|
| locations=['mmaction.engine.optimizers'])
|
|
|
| PARAM_SCHEDULERS = Registry(
|
| 'parameter scheduler',
|
| parent=MMENGINE_PARAM_SCHEDULERS,
|
| locations=['mmaction.engine'])
|
|
|
|
|
| METRICS = Registry(
|
| 'metric', parent=MMENGINE_METRICS, locations=['mmaction.evaluation'])
|
|
|
| EVALUATOR = Registry(
|
| 'evaluator', parent=MMENGINE_EVALUATOR, locations=['mmaction.evaluation'])
|
|
|
|
|
| TASK_UTILS = Registry(
|
| 'task util', parent=MMENGINE_TASK_UTILS, locations=['mmaction.models'])
|
|
|
|
|
| VISUALIZERS = Registry(
|
| 'visualizer',
|
| parent=MMENGINE_VISUALIZERS,
|
| locations=['mmaction.visualization'])
|
|
|
| VISBACKENDS = Registry(
|
| 'vis_backend',
|
| parent=MMENGINE_VISBACKENDS,
|
| locations=['mmaction.visualization'])
|
|
|
|
|
| LOG_PROCESSORS = Registry(
|
| 'log_processor',
|
| parent=MMENGINE_LOG_PROCESSORS,
|
| locations=['mmaction.engine'])
|
|
|
|
|
| INFERENCERS = Registry(
|
| 'inferencer',
|
| parent=MMENGINE_INFERENCERS,
|
| locations=['mmaction.apis.inferencers'])
|
|
|
|
|
| FUNCTION = Registry(
|
| 'function', parent=MMENGINE_FUNCTION, locations=['mmaction.mmengine'])
|
|
|
|
|
| TOKENIZER = Registry(
|
| 'tokenizer',
|
| locations=['mmaction.models'],
|
| )
|
|
|