deserialize_dl_modelT_deserialize_dl_modelDeserializeDlModelDeserializeDlModeldeserialize_dl_model (Operator)

Name

deserialize_dl_modelT_deserialize_dl_modelDeserializeDlModelDeserializeDlModeldeserialize_dl_model — Deserialize a deep learning model.

Signature

deserialize_dl_model( : : SerializedItemHandle : DLModelHandle)

Herror T_deserialize_dl_model(const Htuple SerializedItemHandle, Htuple* DLModelHandle)

void DeserializeDlModel(const HTuple& SerializedItemHandle, HTuple* DLModelHandle)

void HDlModel::DeserializeDlModel(const HSerializedItem& SerializedItemHandle)

static void HOperatorSet.DeserializeDlModel(HTuple serializedItemHandle, out HTuple DLModelHandle)

void HDlModel.DeserializeDlModel(HSerializedItem serializedItemHandle)

def deserialize_dl_model(serialized_item_handle: HHandle) -> HHandle

Description

deserialize_dl_modeldeserialize_dl_modelDeserializeDlModelDeserializeDlModelDeserializeDlModeldeserialize_dl_model deserializes the deep learning model defined by the handle SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle and previously serialized by serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelSerializeDlModelserialize_dl_model.

The operator acts the same as read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModelread_dl_model except that the input is a serialized item instead of a file. For a detailed description please refer to the documentation of read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModelread_dl_model.

For further explanations to deep learning models in HALCON, see the chapter Deep Learning / Model.

Execution Information

Parameters

SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandleserialized_item_handle (input_control)  serialized_item HSerializedItem, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the serialized item.

DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandledlmodel_handle (output_control)  dl_model HDlModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the deep learning model.

Result

If the parameters are valid, the operator deserialize_dl_modeldeserialize_dl_modelDeserializeDlModelDeserializeDlModelDeserializeDlModeldeserialize_dl_model returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

fread_serialized_itemfread_serialized_itemFreadSerializedItemFreadSerializedItemFreadSerializedItemfread_serialized_item, receive_serialized_itemreceive_serialized_itemReceiveSerializedItemReceiveSerializedItemReceiveSerializedItemreceive_serialized_item, serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelSerializeDlModelserialize_dl_model

Possible Successors

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModelapply_dl_model, train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatchtrain_dl_model_batch, train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasettrain_dl_model_anomaly_dataset, set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamSetDlModelParamset_dl_model_param, get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamGetDlModelParamget_dl_model_param

See also

serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelSerializeDlModelserialize_dl_model

Module

Deep Learning Inference