adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
2.02k stars 261 forks source link

[Feature Request] Dynamic Resolutions #747

Open VL4DST3R opened 6 months ago

VL4DST3R commented 6 months ago

Would it be possible to provide (via prompt or otherwise) a set list of image sizes for the extension to cycle through, e.g. { 512x768 | 768x512 | 640x768 } so we can get the same variation derived from prompts like we can get from various canvas sizes? (i.e. image composition and subjects can vary wildly between say, landscape and portrait, at the same size)

It would be a huge QOL improvement for people like me who set up complex lists and rules and then let it churn out images while doing something else.

akx commented 6 months ago

There is no provision to control anything else but prompt right now. This would be more of a thing for the X/Y/Z grid script that sd-webui has, but apparently (and bafflingly) it doesn't have a "Size" option.

VL4DST3R commented 6 months ago

apparently (and bafflingly) it doesn't have a "Size" option.

I know right? I've considered trying to use that as well a while back but gave up. Ideally given this extension's scope I felt it was best to be included here.

Maybe as a drop-down option like prompt magic? I imagine there is a way to change it programatically, and I'm pretty sure I've seen scripts do funny stuff with outpainting and such which I imagine have to change the image size to do their magic.

akx commented 6 months ago

Well: https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/15354

VL4DST3R commented 6 months ago

LMAO awesome XD.

But isn't this a bit of a sidestep? As you don't necessarily want to create a X/Y/Z plot for a particular prompt - you just want to cycle through resolutions randomly.