Resize
Resize class
dlf.preprocessing.resize.Resize(
width, height, method="bilinear", preserve_aspect_ratio=False, antialias=False
)
Data augmentation method that resizes the dimension of a RGB image
For details tf.image.resize
Aliases
- resize
- Resize
Arguments
- width: int. Width of the resized image
- height: int. Height of the resized image
- method: ResizeMethod. Method used for resizing. Defaults to tf.image.ResizeMethod.BILINEAR.
- preserve_aspect_ratio: bool. If true, aspect ratio is preseverd. Defaults to False.
- antialias: bool. If true, an anti-aliasing filter is used for downsampling. Defaults to False.
YAML Configuration
preprocess_list:
resize:
width: 512
height: 512