otx.api.usecases.tasks.interfaces.export_interface#

This module contains the interface class for tasks that can export their models.

Classes

ExportType(value)

Represent the type of export format available through this interface.

IExportTask()

A base interface class for tasks which can export their models.

class otx.api.usecases.tasks.interfaces.export_interface.ExportType(value)[source]#

Bases: Enum

Represent the type of export format available through this interface.

class otx.api.usecases.tasks.interfaces.export_interface.IExportTask[source]#

Bases: object

A base interface class for tasks which can export their models.

abstract export(export_type: ExportType, output_model: ModelEntity, precision: ModelPrecision, dump_features: bool)[source]#

This method defines the interface for export.

Parameters:
  • export_type (ExportType) – The type of optimization.

  • output_model (ModelEntity) – The output model entity.

  • precision (ModelPrecision) – The precision of the ouptut model.

  • dump_features (bool) – Flag to return “feature_vector” and “saliency_map”.