mmpose.apis.webcam.utils.get_config_path¶
- mmpose.apis.webcam.utils.get_config_path(path: str, module_name: str)[源代码]¶
Get config path from an OpenMMLab codebase.
If the path is an existing file, it will be directly returned. If the file doesn’t exist, it will be searched in the ‘configs’ folder of the specified module.
- 参数
path (str) – the path of the config file
module_name (str) – The module name of an OpenMMLab codebase
- 返回
The config file path.
- 返回类型
str
- Example::
>>> path = 'configs/_base_/filters/one_euro.py' >>> get_config_path(path, 'mmpose') '/home/mmpose/configs/_base_/filters/one_euro.py'