AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.1k stars 26.68k forks source link

[FEATURE] Multiple Scripts in parallel on txt2img #2246

Open ghost opened 2 years ago

ghost commented 2 years ago

Is your feature request related to a problem? Please describe. There are multiple use cases to want to run multiple scripts in parallel, as an example, combining the "To infinity and beyond" script with "Seed travel" or "prompt matrix" to create a large amount of images across a range of prompts etc.

Describe the solution you'd like Allow multiple choice of scripts to run on a single generation request

Describe alternatives you've considered Maybe just limiting it to two in parallel in case the risk of conflicts are increased with more than 2 Additional context

Mockup image

amotile commented 2 years ago

Since a custom script can do basically anything it's very unclear what "combining" them in a general sense would mean.

It would probably require a new kind of architecture where you would have defined "things" to hook into and adjust or change.

This would be more complex for a script author to understand than the current "here's the requested parameters: do your thing" that is all you need to understand now.

So if something like this was included I would hope we get to keep this simpler version as well.

evanjs commented 2 years ago

Related discussion: https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/2028 (Custom scripts -> plugin API) I would also like to see composable scripts like this, but as @amotile says, what that means is not certain right now.

Astropulse commented 1 year ago

I am also very much interested in this. My current solution is manually patching together scripts I use in combination frequently.

Astropulse commented 1 year ago

Can you please tell me how to do it?

You just combine the python code. It would be on a case-by-case basis. Obviously you need to know python and understand how the scripts function.

Zibbibbo commented 1 year ago

it would be nice to have StylePile and One Button Prompt at the same time, i like to generate random images

jhancuff commented 1 year ago

or be able to have the scripts run in series like an inside/outside sort of thing. Good example would be loopback outside script running Ultimate SD Upscale inside in each loop.

jimmiles commented 1 year ago

One button prompt and ddetailer would be awesome.