mmcls.utils.register_all_modules¶
- mmcls.utils.register_all_modules(init_default_scope=True)[源代码]¶
Register all modules in mmcls into the registries.
- 参数
init_default_scope (bool) – Whether initialize the mmcls default scope. If True, the global default scope will be set to mmcls, and all registries will build modules from mmcls’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.