Config#

Initialization of Configurable parameter conversion between OTX and Anomalib.

otx.algorithms.anomaly.adapters.anomalib.config.get_anomalib_config(task_name: str, otx_config: ConfigurableParameters) Union[DictConfig, ListConfig]#

Get anomalib configuration.

Create an anomalib config object that matches the values specified in the OTX config.

Args:
otx_config: ConfigurableParameters: OTX config object parsed from

configuration.yaml file

Returns:

Anomalib config object for the specified model type with overwritten default values.

otx.algorithms.anomaly.adapters.anomalib.config.update_anomalib_config(anomalib_config: Union[DictConfig, ListConfig], otx_config: ConfigurableParameters)#

Update anomalib configuration.

Overwrite the default parameter values in the anomalib config with the values specified in the OTX config. The function is recursively called for each parameter group present in the OTX config.

Args:

anomalib_config: DictConfig: Anomalib config object otx_config: ConfigurableParameters: OTX config object parsed from

configuration.yaml file