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

Compute aspect ratios in log-space #1741

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

catboxanon
Copy link

Updates aspect ratio bucketing to align with NovelAI's implementation. See their GitHub repo and paper (specifically footnote [2]) for reference.

https://github.com/NovelAI/novelai-aspect-ratio-bucketing/commits/main/?since=2024-09-25&until=2024-09-25
https://arxiv.org/abs/2409.15997

[2] aspect ratios compared in log-space have the desirable property that a 1:1 aspect ratio can be equidistant
from buckets 2:1 and 1:2, each of which fit an equal proportion of its area.

67372a added a commit to 67372a/sd-scripts that referenced this pull request Nov 16, 2024
[2] aspect ratios compared in log-space have the desirable property that a 1:1 aspect ratio can be equidistant
from buckets 2:1 and 1:2, each of which fit an equal proportion of its area. - https://arxiv.org/abs/2409.15997
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.

1 participant