Shortcuts

mmocr.utils.register_all_modules

mmocr.utils.register_all_modules(init_default_scope=True)[源代码]

Register all modules in mmocr into the registries.

参数

init_default_scope (bool) – Whether initialize the mmocr default scope. When init_default_scope=True, the global default scope will be set to mmocr, and all registries will build modules from mmocr’s registry node. To understand more about the registry, please refer to https://github.com/open-mmlab/mmengine/blob/main/docs/en/tutorials/registry.md Defaults to True.

返回类型

None