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: latest
Versions
latest
1.x
v0.14.0
fix-doc
cn_doc
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.