def _to_container(cfg):
    '\n    mmdet will assert the type of dict/list.\n    So convert omegaconf objects to dict/list.\n    '
    if isinstance(cfg, DictConfig):
        cfg = OmegaConf.to_container(cfg, resolve=True)
    from mmcv.utils import ConfigDict
    return ConfigDict(cfg)
mmdet will assert the type of dict/list.
So convert omegaconf objects to dict/list.
def _to_container(cfg):
    '\n    mmdet will assert the type of dict/list.\n    So convert omegaconf objects to dict/list.\n    '
    if isinstance(cfg, DictConfig):
        cfg = OmegaConf.to_container(cfg, resolve=True)
    from mmcv.utils import ConfigDict
    return ConfigDict(cfg)