preprocessing
PreprocessingExecutor class
dlf.core.preprocessing.PreprocessingExecutor(preprocessing_methods)
Object that applies a list of preprocessing methods to images,masks and boxes
Arguments
- preprocessing_methods: [PreprocessingMethod]. List of preprocessing methods which should be applied
PreprocessingJob class
dlf.core.preprocessing.PreprocessingJob(image, mask=None, boxes=None)
A container that hosts images, masks and bounding boxes for preprocessing
Arguments
- image: tf.tensor. Image that should be preprocessed
- mask: tf.tensor, optional. Mask that should be preprocessed. Defaults to None.
- boxes: tf.tensor, optional. Bounding Boxes to preprocess. Defaults to None.
PreprocessingMethod class
dlf.core.preprocessing.PreprocessingMethod()
Abstract class to describe a Preprocessing Object
In general a preprocessing method is executed for an image. Optional you can pass a mask or a pair image to apply the same transformation like it is done for the image.
call method
PreprocessingMethod.__call__(processing_job: dlf.core.preprocessing.PreprocessingJob)
Executed during preprocessing step
Args
- processing_job: PreprocessingJob. Job that should be preprocessed