detrex.config

detrex.config.get_config(config_path)[source]

Returns a config object from a config_path.

Parameters

config_path (str) – config file name relative to detrex’s “configs/” directory, e.g., “common/train.py”

Returns

a config object

Return type

omegaconf.DictConfig

detrex.config.try_get_key(cfg, *keys, default=None)[source]

Try select keys from lazy cfg until the first key that exists. Otherwise return default.