def get_pose_estimator_cfg(fn: str):
    """Load model config from a config file."""

    fn_config = get_config_file(fn)
    config = Config.fromfile(fn_config)
    return deepcopy(config.model)
Load model config from a config file.
mmpose/mmpose/testing/_utils.py