mmpose.apis.webcam.utils.get_config_path¶
- mmpose.apis.webcam.utils.get_config_path(path: str, module_name: str)[source]¶
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.
- Parameters
path (str) – the path of the config file
module_name (str) – The module name of an OpenMMLab codebase
- Returns
The config file path.
- Return type
str
- Example::
>>> path = 'configs/_base_/filters/one_euro.py' >>> get_config_path(path, 'mmpose') '/home/mmpose/configs/_base_/filters/one_euro.py'