Skip to content

Cropping can only be performed at the end of a pipeline #62

@darsnack

Description

@darsnack

The following works:

augmentations = Rotate(10) |>
                Zoom((0.9, 1.1)) |>
                ScaleFixed((96, 96)) |>
                Maybe(FlipX()) |>
                CenterCrop((96, 96)) |>
                ImageToTensor()

but the following breaks (i.e. the images are not 96x96)

augmentations = Rotate(10) |>
                Zoom((0.9, 1.1)) |>
                ScaleFixed((96, 96)) |>
                CenterCrop((96, 96)) |>
                Maybe(FlipX()) |>
                ImageToTensor()

I don't know if this is a technical limitation (my fuzzy reading of the source code suggests yes), but if it is, then it should be properly documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions