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

Custom resolution enforces step 8 but with 1 as the minimum, meaning its impossible to choose standard resolutions #82

Open
drmbt opened this issue Jul 13, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@drmbt
Copy link

drmbt commented Jul 13, 2024

Description

see title. for instance, 1024 x 576 is impossible, because your code rounds step 8 with min 1 as the base, so 1025 x 577 is all you can do

Reproduction steps

try any standard resolution while custom is selected

Image file

No response

@drmbt drmbt added the bug Something isn't working label Jul 13, 2024
@receyuki
Copy link
Owner

What node do you usually connect it to? As far as I know, some built-in nodes use 1 as the step, but most use 8 as the step, like EmptyLatentImage. So I think setting the step to 8 can avoid unnecessary errors in the workflow.

@drmbt
Copy link
Author

drmbt commented Jul 15, 2024 via email

@receyuki
Copy link
Owner

I just realised what the problem is. I set the minimum value to 1, so when the step size is 8, the next number is 9, and then 17, which is always 1 more than the standard size. EmptyLatentImage has a minimum value of 16, so even with a step size of 8, there's no issue. Thanks a lot for your feedback. I'll fix this right away.

Here’s my solution:

  1. Since the step size for EmptyLatentImage is 8, I’ll keep it at 8.
  2. I’ll change the minimum value to 16 to match EmptyLatentImage.

(I did some extra tests, and it looks like sizes like 1025x1025 get automatically rounded down to 1024x1024 by EmptyLatentImage, so it doesn't affect the workflow).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants