visiontoolkit.cli.process_config¶
- visiontoolkit.cli.process_config()¶
Process all configuration, from CLI, file or a default if neither set.
- Order values are set in:
Defaults set first, to ensure everything has a valid value, then…
Overidden by any config. file specifications, which are in turn…
Overidden by any CLI options provided, which are aways applied over the former.
Overwrite any config. specified in the config. file given with the CLI –config-file argument with any other CLI options given, excluding the config. file option, processed above. This means that the CLI is the overriding input, e.g. for a config. file with ‘“halo-size”: 1’ set and a CLI option of ‘halo-size=2’, the value 2 will be taken and used.