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

Should "and" be used here if height <= crop_size or width <= crop_size: return (1, 1)? #247

Open
dyou-dev opened this issue Feb 19, 2025 · 1 comment

Comments

@dyou-dev
Copy link

if height <= crop_size or width <= crop_size:

Should "and" be used here instead of "or"?
if height <= crop_size and width <= crop_size:
return (1, 1)

@dyou-dev
Copy link
Author

With the original input 644x378, expected to get tiling 2x1, but here got 1x1, or 4x2 after using "and".

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