• A preprocessing layer which resizes images. This layer resizes an image input to a target height and width. The input should be a 4D (batched) or 3D (unbatched) tensor in "channels_last" format. Input pixel values can be of any range (e.g. [0., 1.) or [0, 255]) and of interger or floating point dtype. By default, the layer will output floats.

    Arguments:

    • height: number, the height for the output tensor.
    • width: number, the width for the output tensor.
    • interpolation: string, the method for image resizing interpolation.
    • cropToAspectRatio: boolean, whether to keep image aspect ratio.

    Input shape: Arbitrary.

    Output shape: height, width, num channels.

    Parameters

    • Optional args: ResizingArgs

    Returns Resizing

    Doc

Generated using TypeDoc