Shortcuts

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'
Read the Docs v: v0.28.0
Versions
latest
v0.28.0
v0.27.0
v0.26.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.