-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Increase Upscaler Limits #14589
Increase Upscaler Limits #14589
Conversation
I'm fine with increasing default the scale to limit to 8192 but why the hell would someone who wants to upscale their image by 100 times the original 8 is good enough for mose use cases, if you need it to be higer set it in your ui-config.json for your self in your ui-config.json |
Especially considering the maximum number of times the current implementation will even attempt an upscale is thrice, and it will then (maybe) downscale to the desired size. 😁 stable-diffusion-webui/modules/upscaler.py Lines 59 to 73 in cf2772f
|
Yeah I'm not sure who would use 100x but I just chose some round number that I figured nobody would ever hit and be limited by. The number can absolutely go down. I usually just type in the scaling factor so I wasn't really thinking about the slider too much. Do you have any suggestions for a reasonable scaling factor maximum? I was also wondering about the |
as mentioned above the current value 8 is good enough |
The reason for having low maximum value is as follows. If you have possible zoom levels from 1 to 8, and a general user usually needs something like, let's say, from 1 to 4, then about 3/7 = 42% of the slider is useful space for him: there are hundreds of pixels of slider width, and he can drag the slider with the mouse, and get different zoom levels that he likes. If you set it from 1 to 100, suddently it becomes 3/99 = 3% of the slider, and that's a very small number of pixels on screen. At this point, slider is more or less unusable, and he just has to input his value into the box. So the smaller limits are to make the slider useful. And you can change the maximum value for yourself in |
Okay so I will remove the scale factor changes. Should we continue with the increased dimension limits or should I just close this PR and leave it up to the user to modify the |
Description
This PR increases the upscaling limits in the
Extras
tab. It also removes the upper limit forupscaling_resize
in the API.Screenshots/videos:
Below are images showing the new limits applied to the
Extras
tab.Checklist:
Notes:
I wonder if these limits were originally set to avoid people constantly writing up issues saying that their WebUI keeps crashing whenever they try to run an upscale job that would use up all their memory. If that is the case, then we can just close out this PR and leave it as-is. However I think it would be helpful to increase these limits so that people don't have to dig through code to find out where to bypass them.