otx.algorithms.classification.utils#

OTX Algorithms - Utils.

Functions

get_hierarchical_label_list(...)

Return hierarchical labels list which is adjusted to model outputs classes.

get_multihead_class_info(label_schema)

Get multihead info by label schema.

get_cls_inferencer_configuration(label_schema)

Get classification inferencer config by label schema.

get_cls_deploy_config(label_schema, ...)

Get classification deploy config.

get_cls_model_api_configuration(...)

Get ModelAPI config.

otx.algorithms.classification.utils.get_cls_deploy_config(label_schema: LabelSchemaEntity, inference_config: Dict[str, Any])[source]#

Get classification deploy config.

otx.algorithms.classification.utils.get_cls_inferencer_configuration(label_schema: LabelSchemaEntity)[source]#

Get classification inferencer config by label schema.

otx.algorithms.classification.utils.get_cls_model_api_configuration(label_schema: LabelSchemaEntity, inference_config: Dict[str, Any])[source]#

Get ModelAPI config.

otx.algorithms.classification.utils.get_hierarchical_label_list(hierarchical_cls_heads_info: Dict, labels: List) List[LabelEntity][source]#

Return hierarchical labels list which is adjusted to model outputs classes.

otx.algorithms.classification.utils.get_multihead_class_info(label_schema: LabelSchemaEntity)[source]#

Get multihead info by label schema.