Shortcuts

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'
Read the Docs v: 0.x
Versions
latest
1.x
v1.0.0rc1
v0.29.0
v0.28.0
dev-1.x
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.