fit the destination image size to the init image aspect ratio - #230
fit the destination image size to the init image aspect ratio#230lstein wants to merge 3 commits into
Conversation
… than other way around
|
I tried your code and still having issues. When I use the webUI with a 512 X 704 image and enter those dimensions in the field it resizes my image to 320 X 512. loaded input image of size 512x704 from ./img2img-tmp.png At the command line I get this error Traceback (most recent call last): |
|
@cvar66 You found two bugs. Thank you! |
|
I just updated with git and now I have a new problem. webUi loaded up fine, but as soon as i hit generate I get this error. Will try the new code when this is fixed. File "e:\stable-diffusion\ldm\dream\server.py", line 91, in do_POST |
|
I removed the File "e:\stable-diffusion\ldm\dream\server.py", line 134, in do_POST |
|
This PR does the same thing as @blessedcoolant 's PR #229. I'm testing his version now and will use that in preference to this one because he's added checks for more edge cases. |
|
Abandoned. |
…latency fix(multi-gpu): cancel mid-step and release VRAM while a peer renders
Users request that the aspect ratio of the init image should constrain the dimensions of the generated image, rather than the other way around. This implements this request in a way that does not increase the overall area (and VRAM requirements) of the generated image.
In addition, there was a bug in how the destination image's dimensions were calculated, and this fixes that.