diff --git a/mmengine/config/utils.py b/mmengine/config/utils.py index 81b58fb49a..bb15d689bd 100644 --- a/mmengine/config/utils.py +++ b/mmengine/config/utils.py @@ -175,6 +175,8 @@ def _is_builtin_module(module_name: str) -> bool: origin_path = getattr(spec, 'origin', None) if origin_path is None: return False + if origin_path == 'frozen': + return True origin_path = osp.abspath(origin_path) if ('site-package' in origin_path or 'dist-package' in origin_path or not origin_path.startswith(