transform_dl_sample_batch🔗
Short description🔗
transform_dl_sample_batch — Apply a pipeline of transforms on a set of images.
Signature🔗
transform_dl_sample_batch( dl_transform_pipeline TransformPipeline, dict DLSampleBatch, out dict DLResultBatch )
Description🔗
transform_dl_sample_batch transforms a batch of samples
prior to their use in train_dl_model_batch and apply_dl_model.
The transformations defined in TransformPipeline may include
adapting the image dimensions, scaling the gray value range, and applying data
augmentation methods.
Besides the image data keys image and image_id contained in
DLSampleBatch, annotations are also transformed if present.
Currently, only keys for object detection models (including instance
segmentation) are supported.
The behavior for 'instance_type' =
'rectangle2' can be influenced by the parameters
'ignore_direction' and 'class_ids_no_orientation',
see get_dl_transform_pipeline_param.
If DLSampleBatch contains annotation keys for other model
types, an error may be raised.
In addition to transformed keys, DLResultBatch contains
-
'transformed_full_domain': Transformation of the rectangular full domain of the input image, clipped to output.
-
'back_transform': Transformation that can be used together with
projective_trans_pixelorprojective_trans_regionto transform inference results ofapply_dl_modelback to the coordinate system of the original image.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Automatically parallelized on internal data level.
Parameters🔗
TransformPipeline (input_control) dl_transform_pipeline → (handle)
Transform pipeline handle.
DLSampleBatch (input_control) dict-array → (handle)
Input data.
DLResultBatch (output_control) dict-array → (handle)
Result data.
Combinations with other operators🔗
Combinations
Possible predecessors
Possible successors
train_dl_model_batch, apply_dl_model
See also
get_dl_transform_pipeline_param, set_dl_transform_pipeline_param
Module🔗
Foundation