otx.algorithms.action.adapters#

Adapters for Action Recognition.

Classes

OTXOVActionCls(model_adapter[, ...])

OTX Action Classification model for openvino task.

OTXOVActionDet(model_adapter[, ...])

OTX Action Detection model for openvino task.

class otx.algorithms.action.adapters.OTXOVActionCls(model_adapter: OpenvinoAdapter, configuration=None, preload=False)[source]#

Bases: Model

OTX Action Classification model for openvino task.

Image model constructor.

Calls the Model constructor first

postprocess(outputs: Dict[str, ndarray], meta: Dict[str, Any])[source]#

Post-process.

preprocess(inputs: List[DatasetItemEntity])[source]#

Pre-process.

class otx.algorithms.action.adapters.OTXOVActionDet(model_adapter: OpenvinoAdapter, configuration=None, preload=False)[source]#

Bases: Model

OTX Action Detection model for openvino task.

Image model constructor.

Calls the Model constructor first

postprocess(outputs: Dict[str, ndarray], meta: Dict[str, Any])[source]#

Post-process.

preprocess(inputs: List[DatasetItemEntity])[source]#

Pre-process.

static reshape(inputs: List[ndarray]) ndarray[source]#

Reshape(expand, transpose, permute) the input np.ndarray.