8.1.1.9.2.2. blueoil.utils.config

8.1.1.9.2.2.1. Module Contents

8.1.1.9.2.2.1.1. Functions

_saved_config_file_path()

_config_file_path_to_copy(config_file)

check_config(config, mode=’inference’)

Check config dict key. Raise error when requirement keys don’t exist in config

load(config_file)

dynamically load a config file as module.

_load_py(config_file)

_smart_dict_to_dict(config)

_save_meta_yaml(output_dir, config)

_save_config_yaml(output_dir, config)

save_yaml(output_dir, config)

Save two yaml files.

_load_yaml(config_file)

load_from_experiment()

Load saved experiment config as module.

display(config)

copy_to_experiment_dir(config_file)

merge(base_config, override_config)

merge config.

blueoil.utils.config.PARAMS_FOR_EXPORT = ['DATA_FORMAT', 'TASK', 'IMAGE_SIZE', 'CLASSES', 'PRE_PROCESSOR', 'POST_PROCESSOR']
blueoil.utils.config.REQUIEMNT_PARAMS_FOR_INFERENCE = ['IS_DEBUG', 'DATA_FORMAT', 'TASK', 'DATASET_CLASS', 'NETWORK_CLASS', 'IMAGE_SIZE', 'BATCH_SIZE', 'CLASSES', ['PRE_PROCESSOR', 'TFDS_PRE_PROCESSOR'], 'POST_PROCESSOR']
blueoil.utils.config.REQUIEMNT_PARAMS_FOR_TRAINING
blueoil.utils.config._saved_config_file_path()
blueoil.utils.config._config_file_path_to_copy(config_file)
blueoil.utils.config.check_config(config, mode='inference')

Check config dict key. Raise error when requirement keys don’t exist in config

blueoil.utils.config.load(config_file)

dynamically load a config file as module.

Return: SmartDict object

blueoil.utils.config._load_py(config_file)
blueoil.utils.config._smart_dict_to_dict(config)
blueoil.utils.config._save_meta_yaml(output_dir, config)
blueoil.utils.config._save_config_yaml(output_dir, config)
blueoil.utils.config.save_yaml(output_dir, config)

Save two yaml files.

  1. ‘config.yaml’ is duplication of python config file as yaml.

  2. ‘meta.yaml’ for application. The yaml’s keys defined by PARAMS_FOR_EXPORT.

blueoil.utils.config._load_yaml(config_file)
blueoil.utils.config.load_from_experiment()

Load saved experiment config as module.

Return: SmartDict object

blueoil.utils.config.display(config)
blueoil.utils.config.copy_to_experiment_dir(config_file)
blueoil.utils.config.merge(base_config, override_config)

merge config.

Return: merged config (SmartDict object).