Open klsic opened 1 year ago
Can you screenshot the console output? Should log "img size: ...x... -> ...x..." somewhere.
Note the changes in it/s, its generating at imgsize 1224 with img2img.
Related: I think upscaling is broken independently of this bug. While that aspect isn't reproducible on the main branch, I suspect it is there. On @JasonS09 's ControlNet branch, the resolution setting is respected (when you have controlnet enabled anyways, which goes down a different code path), but the image isn't run through an upscaler and the output is grainy. I am quite certain it did work before the latest WebUI update.
@Interpause I have the same problem. After tests, I found that the set resolution in the base / max size settings is ignored, but it still respects the relative proportions of the set values in the base/max size (provided that base/max size is less than the selected area). And even in mode with the Disable base/max size option enabled In txt2img mode everything works correctly
Case 1: img2img not used "disable base/max size" base size: 512 max size: 1024 canvas size: 1024x2048 select zone: 1024x2048 result: render in 1024x2048
Case 2: img2img not used "disable base/max size" base size: 512 max size: 1024 canvas size: 1024x2048 select zone: 115x96 result: render in 120x96
Case 3: img2img used "disable base/max size" canvas size: 1024x2048 select zone: 115x96 result: render in 120x96
Case 4: img2img not used "disable base/max size" base size: 64 max size: 64 canvas size: 1024x2048 select zone: 263x603 result: render in 600x600
Case 5: img2img used "disable base/max size" but in the hidden settings there are values - base: 64 max: 64 canvas size: 1024x2048 select zone: 263x603 result: render in 600x600
info: win11 rtx 3070 laptop version Krita 5.1.1
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.2.1 Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045 Installing requirements [auto-sd-paint-ext] Commit hash: 00714355890aefa9a09e7fdb1f9a136c46a17618 [auto-sd-paint-ext] Auto-update disabled. Launching Web UI with arguments: --theme=dark --xformers --api
I seem to have solved the problem, but I'm not sure if I did it the right way.
It is required to change the value in line 275 to any other than 1
https://github.com/Interpause/auto-sd-paint-ext/blob/main/backend/app.py#L275
1, # selected_scale_tab
> 0, # selected_scale_tab
Img2Img/Inpaint don't respect Max size/Base size. Creating a rectangle selection of 768X768 will cause an image to be generated at 768x768 instead of whatever is specified in Max Size. Txt2Img doesn't have this issue.