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

Fix Cropping #53

Merged
merged 2 commits into from Oct 1, 2021
Merged

Fix Cropping #53

merged 2 commits into from Oct 1, 2021

Conversation

mfalt
Copy link
Contributor

@mfalt mfalt commented Sep 30, 2021

Fixes #52
I have no idea if this is how the bounds are meant to be used, but this change fixes the issue, and seems to be identical to how apply! is implemented later in the file.

@lorenzoh
Copy link
Member

lorenzoh commented Oct 1, 2021

Yeah, that must have been it! I think I wrote that conditional as a performance improvement, but forgot that that would also not do the cropping. Thanks for the fix! I'll tag a new release right away.

@lorenzoh lorenzoh merged commit aec2183 into FluxML:master Oct 1, 2021
@terasakisatoshi
Copy link

@mfalt @lorenzoh thank you !!!

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 this pull request may close these issues.

tfm = CenterCrop, tfm = RandomCrop does not work as we expected
3 participants