ModuleDict¶ class mmengine.model.ModuleDict(modules=None, init_cfg=None)[source]¶ ModuleDict in openmmlab. Ensures that all modules in ModuleDict have a different initialization strategy than the outer model Parameters: modules (dict, optional) – A mapping (dictionary) of (string: module) or an iterable of key-value pairs of type (string, module). init_cfg (dict, optional) – Initialization config dict.