Skip to content

transform_dl_sample_batchTransformDlSampleBatchTransformDlSampleBatchtransform_dl_sample_batchT_transform_dl_sample_batch🔗

説明🔗

transform_dl_sample_batchTransformDlSampleBatchTransformDlSampleBatchtransform_dl_sample_batchT_transform_dl_sample_batch — 画像セットに変換パイプラインを適用する。

書式🔗

transform_dl_sample_batch( dl_transform_pipeline TransformPipeline, dict DLSampleBatch, out dict DLResultBatch )void TransformDlSampleBatch( const HTuple& TransformPipeline, const HTuple& DLSampleBatch, HTuple* DLResultBatch )static void HOperatorSet.TransformDlSampleBatch( HTuple transformPipeline, HTuple DLSampleBatch, out HTuple DLResultBatch )def transform_dl_sample_batch( transform_pipeline: HHandle, dlsample_batch: Sequence[HHandle] ) -> Sequence[HHandle]

Herror T_transform_dl_sample_batch( const Htuple TransformPipeline, const Htuple DLSampleBatch, Htuple* DLResultBatch )

HDictArray HDlTransformPipeline::TransformDlSampleBatch( const HDictArray& DLSampleBatch ) const

HDict[] HDlTransformPipeline.TransformDlSampleBatch( HDict[] DLSampleBatch )

説明🔗

transform_dl_sample_batchTransformDlSampleBatch は、 train_dl_model_batchTrainDlModelBatch および apply_dl_modelApplyDlModel で 使用される前のサンプルのバッチを変換します。 TransformPipelinetransformPipelinetransform_pipeline で定義された変換には、画像サイズの調整、 グレースケール範囲の拡大縮小、データ拡張手法の適用などが含まれます。

DLSampleBatchDLSampleBatchdlsample_batch に含まれる画像データキー image および image_id に加えて、 アノテーションが存在する場合はそれらも変換されます。 現在、サポートされているのは物体検出モデル(インスタンスセグメンテーションを含む)のキーのみです。 'instance_type'"instance_type" = 'rectangle2'"rectangle2" の場合の挙動は、 パラメーター 'ignore_direction'"ignore_direction" および 'class_ids_no_orientation'"class_ids_no_orientation" によって制御できます。 詳細は get_dl_transform_pipeline_paramGetDlTransformPipelineParam を参照してください。 DLSampleBatchDLSampleBatchdlsample_batch に他のモデルタイプのアノテーションキーが含まれている場合、 エラーが発生することがあります。

DLResultBatchDLResultBatchdlresult_batch には、変換されたキーに加えて、以下の項目が含まれます。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 内部データレベルで自動的に並列演算処理を実施

パラメーター🔗

TransformPipelinetransformPipelinetransform_pipeline (input_control) dl_transform_pipeline → (handle)HTuple (HHandle)HDlTransformPipeline, HTuple (IntPtr)HHandleHtuple (handle)

変換パイプラインのハンドル

DLSampleBatchDLSampleBatchdlsample_batch (input_control) dict-array → (handle)HTuple (HHandle)HDict, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

入力データ

DLResultBatchDLResultBatchdlresult_batch (output_control) dict-array → (handle)HTuple (HHandle)HDict, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

結果データ

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

create_dl_transform_pipelineCreateDlTransformPipeline

後処理の候補

train_dl_model_batchTrainDlModelBatch, apply_dl_modelApplyDlModel

関連項目

get_dl_transform_pipeline_paramGetDlTransformPipelineParam, set_dl_transform_pipeline_paramSetDlTransformPipelineParam

モジュール🔗

Foundation