-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
add "resize by" and "resize to" tabs to img2img #9108
Conversation
Really appreciate it if someone could add a function similar to Hires.fix in txt2img. It should be different from below
Sorry to emphasize this but Hires.fix is quite useful which has less demand on GPU resource.
This is a bit magical but it really looks so. |
@SnowingIce Isn't that more or less what upscaling with img2img does? Have you tried doing it like this? Works pretty good. |
Following this PR. I really hope we will be able to choose an upscaler and latent upscaler to be applied by the resize (like in hrfix). As I'm still using my own updated local version of #6540 a lot. |
I second having an upscaler dropdown in img2img for parity with HR fix. Two things I noticed, first with "Send to img2img" from txt2img, the "resize from" text doesn't update from "no image selected" until you move the slider. Second, I would like to have a way to have "Resize by" be the default tab when I open img2img, I don't think the selected tab can be configured with @SnowingIce I think I understand what you mean now, this can be done by hand with "Send to img2img" on the img2img output. Maybe a custom script would be of use here? Would help ease the complexity of the UI |
@space-nuko Yes a script would also work pretty well.
The technical goal is: The practical use of it is: (There are something like gif2gif, but none incorporates ControlNet and Highres.fix) |
Co-authored-by: missionfloyd <missionfloyd@users.noreply.github.com>
How can I increase maximum resolution in "Resize to" tab? I tried manually changing it in "C:\sd.webui\webui\modules\ui.py" but it still doesn't go above 2048, |
Changing for txt2img : "txt2img/First pass width/value": 512,
"txt2img/First pass width/minimum": 64,
"txt2img/First pass width/maximum": 2560,
"txt2img/First pass width/step": 64,
"txt2img/First pass height/visible": true,
"txt2img/First pass height/value": 512,
"txt2img/First pass height/minimum": 64,
"txt2img/First pass height/maximum": 2560,
"txt2img/First pass height/step": 64,
"txt2img/Resize width to/visible": true,
"txt2img/Resize width to/value": 0,
"txt2img/Resize width to/minimum": 0,
"txt2img/Resize width to/maximum": 2560,
"txt2img/Resize width to/step": 8,
"txt2img/Resize height to/visible": true,
"txt2img/Resize height to/value": 0,
"txt2img/Resize height to/minimum": 0,
"txt2img/Resize height to/maximum": 2560,
"txt2img/Resize height to/step": 8, and for img2img : "img2img/Width/value": 512,
"img2img/Width/minimum": 64,
"img2img/Width/maximum": 2560,
"img2img/Width/step": 64,
"img2img/Height/value": 512,
"img2img/Height/minimum": 64,
"img2img/Height/maximum": 2560,
"img2img/Height/step": 64, |
You're right, I seem to have the same problem, which seems to be caused by the This is linked to this issue I guess : thomasasfk/sd-webui-aspect-ratio-helper#64 |
For img2img interface, adds an option to resize the input image instead of having to specify resolution.
Looks like this: