create_dl_layer_zoom_sizeT_create_dl_layer_zoom_sizeCreateDlLayerZoomSizeCreateDlLayerZoomSizecreate_dl_layer_zoom_size (Operator)

Name

create_dl_layer_zoom_sizeT_create_dl_layer_zoom_sizeCreateDlLayerZoomSizeCreateDlLayerZoomSizecreate_dl_layer_zoom_size — Erstellen eines Zoom-Layers, der eine absolute Ausgabegröße verwendet.

Signatur

create_dl_layer_zoom_size( : : DLLayerInput, LayerName, Width, Height, Interpolation, AlignCorners, GenParamName, GenParamValue : DLLayerZoom)

Herror T_create_dl_layer_zoom_size(const Htuple DLLayerInput, const Htuple LayerName, const Htuple Width, const Htuple Height, const Htuple Interpolation, const Htuple AlignCorners, const Htuple GenParamName, const Htuple GenParamValue, Htuple* DLLayerZoom)

void CreateDlLayerZoomSize(const HTuple& DLLayerInput, const HTuple& LayerName, const HTuple& Width, const HTuple& Height, const HTuple& Interpolation, const HTuple& AlignCorners, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* DLLayerZoom)

HDlLayer HDlLayer::CreateDlLayerZoomSize(const HString& LayerName, Hlong Width, Hlong Height, const HString& Interpolation, const HString& AlignCorners, const HTuple& GenParamName, const HTuple& GenParamValue) const

HDlLayer HDlLayer::CreateDlLayerZoomSize(const HString& LayerName, Hlong Width, Hlong Height, const HString& Interpolation, const HString& AlignCorners, const HString& GenParamName, const HString& GenParamValue) const

HDlLayer HDlLayer::CreateDlLayerZoomSize(const char* LayerName, Hlong Width, Hlong Height, const char* Interpolation, const char* AlignCorners, const char* GenParamName, const char* GenParamValue) const

HDlLayer HDlLayer::CreateDlLayerZoomSize(const wchar_t* LayerName, Hlong Width, Hlong Height, const wchar_t* Interpolation, const wchar_t* AlignCorners, const wchar_t* GenParamName, const wchar_t* GenParamValue) const   (Nur Windows)

static void HOperatorSet.CreateDlLayerZoomSize(HTuple DLLayerInput, HTuple layerName, HTuple width, HTuple height, HTuple interpolation, HTuple alignCorners, HTuple genParamName, HTuple genParamValue, out HTuple DLLayerZoom)

HDlLayer HDlLayer.CreateDlLayerZoomSize(string layerName, int width, int height, string interpolation, string alignCorners, HTuple genParamName, HTuple genParamValue)

HDlLayer HDlLayer.CreateDlLayerZoomSize(string layerName, int width, int height, string interpolation, string alignCorners, string genParamName, string genParamValue)

def create_dl_layer_zoom_size(dllayer_input: HHandle, layer_name: str, width: int, height: int, interpolation: str, align_corners: str, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[int, float, str]]) -> HHandle

Beschreibung

Der Operator create_dl_layer_zoom_factorcreate_dl_layer_zoom_factorCreateDlLayerZoomFactorCreateDlLayerZoomFactorCreateDlLayerZoomFactorcreate_dl_layer_zoom_factor erstellt einen Zoom-Layer, der eine absolute Ausgabegröße verwendet und gibt das Layer-Handle in DLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomdllayer_zoom zurück.

Der Parameter DLLayerInputDLLayerInputDLLayerInputDLLayerInputDLLayerInputdllayer_input bestimmt den zuführenden Eingabelayer und erwartet das Layer-Handle als Wert.

Der Parameter LayerNameLayerNameLayerNameLayerNamelayerNamelayer_name legt einen individuellen Layernamen fest. Es ist zu beachten, dass beim Erstellen eines Modells mit create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelCreateDlModelcreate_dl_model jeder Layer des erstellten Netzes einen eindeutigen Namen haben muss.

Die Parameter WidthWidthWidthWidthwidthwidth und HeightHeightHeightHeightheightheight bestimmen die absolute Ausgabegröße des Zoom-Layers DLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomdllayer_zoom.

Der Parameter InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation bestimmt den Interpolationsmodus. Aktuell wird nur der Modus 'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear" unterstützt.

Der Parameter AlignCornersAlignCornersAlignCornersAlignCornersalignCornersalign_corners bestimmt wie Koordinaten vom Ausgabe- zum Eingabebild transformiert werden:

'true'"true""true""true""true""true":

Die Transformation wird im Kartesischen Nicht-Standard Koordinatensystem in HALCON angewendet (Ecken-zentriert, mit dem Ursprung in der linken oberen Ecke, siehe Kapitel Transformationen / 2D-Transformationen). Wird beispielsweise als Achse verwendet, folgt daraus:

'false'"false""false""false""false""false":

Die Transformation wird im HALCON Standard-Koordinatensystem angewendet (Pixel-zentriert, mit dem Ursprung in der Mitte des linken oberen Pixels, siehe Kapitel Transformationen / 2D-Transformationen). Wird beispielsweise als Achse verwendet, folgt daraus:

Die folgenden generischen Parameter GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name und die entsprechenden Werte GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value werden unterstützt:

'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output""is_inference_output":

Bestimmt, ob apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModelapply_dl_model die Ausgabe dieses Layers im Dictionary DLResultBatchDLResultBatchDLResultBatchDLResultBatchDLResultBatchdlresult_batch zurückgibt, auch ohne den Layer in OutputsOutputsOutputsOutputsoutputsoutputs anzugeben ('true'"true""true""true""true""true"), oder nur falls er angegeben wird ('false'"false""false""false""false""false").

Default: 'false'"false""false""false""false""false"

Bestimmte Parameter von Layern, die mit create_dl_layer_zoom_sizecreate_dl_layer_zoom_sizeCreateDlLayerZoomSizeCreateDlLayerZoomSizeCreateDlLayerZoomSizecreate_dl_layer_zoom_size erzeugt wurden, können mit weiteren Operatoren gesetzt und abgerufen werden. Die folgenden Tabellen geben einen Überblick, welche Parameter mit set_dl_model_layer_paramset_dl_model_layer_paramSetDlModelLayerParamSetDlModelLayerParamSetDlModelLayerParamset_dl_model_layer_param gesetzt werden können und welche mit get_dl_model_layer_paramget_dl_model_layer_paramGetDlModelLayerParamGetDlModelLayerParamGetDlModelLayerParamget_dl_model_layer_param oder get_dl_layer_paramget_dl_layer_paramGetDlLayerParamGetDlLayerParamGetDlLayerParamget_dl_layer_param ausgelesen werden können. Es ist zu beachten, dass die Operatoren set_dl_model_layer_paramset_dl_model_layer_paramSetDlModelLayerParamSetDlModelLayerParamSetDlModelLayerParamset_dl_model_layer_param und get_dl_model_layer_paramget_dl_model_layer_paramGetDlModelLayerParamGetDlModelLayerParamGetDlModelLayerParamget_dl_model_layer_param ein Modell benötigen, das mit create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelCreateDlModelcreate_dl_model erzeugt wurde.

Layer-Parameter set get
'align_corners'"align_corners""align_corners""align_corners""align_corners""align_corners" (AlignCornersAlignCornersAlignCornersAlignCornersalignCornersalign_corners)
'input_layer'"input_layer""input_layer""input_layer""input_layer""input_layer" (DLLayerInputDLLayerInputDLLayerInputDLLayerInputDLLayerInputdllayer_input)
'interpolation_mode'"interpolation_mode""interpolation_mode""interpolation_mode""interpolation_mode""interpolation_mode" (InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation)
'name'"name""name""name""name""name" (LayerNameLayerNameLayerNameLayerNamelayerNamelayer_name)
'output_layer'"output_layer""output_layer""output_layer""output_layer""output_layer" (DLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomdllayer_zoom)
'scale_params'"scale_params""scale_params""scale_params""scale_params""scale_params" (WidthWidthWidthWidthwidthwidth und HeightHeightHeightHeightheightheight)
'shape'"shape""shape""shape""shape""shape"
'type'"type""type""type""type""type"
Generische Layer-Parameter set get
'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output""is_inference_output"
'num_trainable_params'"num_trainable_params""num_trainable_params""num_trainable_params""num_trainable_params""num_trainable_params"

Ausführungsinformationen

Parameter

DLLayerInputDLLayerInputDLLayerInputDLLayerInputDLLayerInputdllayer_input (input_control)  dl_layer HDlLayer, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Zuführender Layer.

LayerNameLayerNameLayerNameLayerNamelayerNamelayer_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name des Ausgabelayers.

WidthWidthWidthWidthwidthwidth (input_control)  number HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Absolute Breite des Ausgabelayers.

Defaultwert: 100

HeightHeightHeightHeightheightheight (input_control)  number HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Absolute Höhe des Ausgabelayers.

Defaultwert: 100

InterpolationInterpolationInterpolationInterpolationinterpolationinterpolation (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Interpolationsmodus.

Defaultwert: 'bilinear' "bilinear" "bilinear" "bilinear" "bilinear" "bilinear"

Werteliste: 'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear"

AlignCornersAlignCornersAlignCornersAlignCornersalignCornersalign_corners (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Typ der Koordinatentransformation zwischen Ausgabe-/Eingabebild.

Defaultwert: 'false' "false" "false" "false" "false" "false"

Werteliste: 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control)  attribute.name(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Namen der generischen Eingabeparameter.

Defaultwert: []

Werteliste: 'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output""is_inference_output"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (input_control)  attribute.value(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Werte der generischen Eingabeparameter.

Defaultwert: []

Wertevorschläge: 'true'"true""true""true""true""true", 'false'"false""false""false""false""false"

DLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomDLLayerZoomdllayer_zoom (output_control)  dl_layer HDlLayer, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Zoom-Layer.

Alternativen

create_dl_layer_zoom_factorcreate_dl_layer_zoom_factorCreateDlLayerZoomFactorCreateDlLayerZoomFactorCreateDlLayerZoomFactorcreate_dl_layer_zoom_factor, create_dl_layer_zoom_to_layer_sizecreate_dl_layer_zoom_to_layer_sizeCreateDlLayerZoomToLayerSizeCreateDlLayerZoomToLayerSizeCreateDlLayerZoomToLayerSizecreate_dl_layer_zoom_to_layer_size

Modul

Deep Learning Training