otx.algorithms.detection.task#
Task of OTX Detection.
Classes
|
Task class for OTX detection. |
- class otx.algorithms.detection.task.OTXDetectionTask(task_environment: TaskEnvironment, output_path: str | None = None)[source]#
-
Task class for OTX detection.
- evaluate(output_resultset: ResultSetEntity, evaluation_metric: str | None = None)[source]#
Evaluate function of OTX Detection Task.
- explain(dataset: DatasetEntity, explain_parameters: ExplainParameters | None = None) DatasetEntity [source]#
Main explain function of OTX Task.
- export(export_type: ExportType, output_model: ModelEntity, precision: ModelPrecision = ModelPrecision.FP32, dump_features: bool = True)[source]#
Export function of OTX Detection Task.
- infer(dataset: DatasetEntity, inference_parameters: InferenceParameters | None = None) DatasetEntity [source]#
Main infer function.
- save_model(output_model: ModelEntity)[source]#
Save best model weights in DetectionTrainTask.
- train(dataset: DatasetEntity, output_model: ModelEntity, train_parameters: TrainParameters | None = None, seed: int | None = None, deterministic: bool = False)[source]#
Train function for OTX detection task.
Actual training is processed by _train_model fucntion