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

Transforms throw errors on non-square images #21

Open
d-colwell opened this issue Nov 27, 2023 · 0 comments
Open

Transforms throw errors on non-square images #21

d-colwell opened this issue Nov 27, 2023 · 0 comments

Comments

@d-colwell
Copy link

Given 2 images with inverted aspect ratios (image 1: 1000x500, image 2: 500x1000), and a desired image size of 1000x500, the transform A.LongestMaxSize will not pad either image, resulting in a non-batchable image batch. To resolve this, the images should be resized to the largest size that fits within the given dimensions.

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

No branches or pull requests

1 participant