Load a configuration as a python module.
(fname)
| 30 | |
| 31 | |
| 32 | def _get_config_module(fname): |
| 33 | """Load a configuration as a python module.""" |
| 34 | from mmcv import Config |
| 35 | config_dpath = _get_config_directory() |
| 36 | config_fpath = join(config_dpath, fname) |
| 37 | config_mod = Config.fromfile(config_fpath) |
| 38 | return config_mod |
| 39 | |
| 40 | |
| 41 | def test_convert_SyncBN(): |
no test coverage detected