otx.api.entities.inference_parameters#
This module implements the AnalyseParameters entity.
Functions
|
This is the default progress callback for OptimizationParameters. |
Classes
|
Inference parameters. |
- class otx.api.entities.inference_parameters.InferenceParameters(is_evaluation: bool = False, update_progress: ~typing.Callable[[int, float | None], ~typing.Any] = <function default_progress_callback>, explainer: str = '', process_saliency_maps: bool = False, explain_predicted_classes: bool = True, enable_async_inference: bool = True)[source]#
Bases:
object
Inference parameters.
- is_evaluation#
Set to
True
if the output dataset is intended to be used for evaluation purposes. In this scenario, any postprocessing filtering (such as thresholding and NMS) should be disabled to avoid interfering with algorithms such as NMS.- Type:
- update_progress#
Callback which can be used to provide updates about the progress of a task.
- explainer#
Explain algorithm to be used in explanation mode. Will be converted automatically to lowercase.
- Type:
- explain_predicted_classes#
If set to True, provide explanations only for predicted classes. Otherwise, explain all classes.
- Type: