Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
darsnack opened this issue Apr 5, 2022 · 1 comment · Fixed by #63
Closed

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

darsnack opened this issue Apr 5, 2022 · 1 comment · Fixed by #63

Comments

@darsnack
Copy link
Member

darsnack commented Apr 5, 2022

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.

@lorenzoh
Copy link
Member

lorenzoh commented Apr 6, 2022

🐛
#63 fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants