stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[FEATURE] Multiple Scripts in parallel on txt2img

Open CryptoCarlos21 opened this issue 2 years ago • 6 comments

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

CryptoCarlos21 avatar Oct 11 '22 07:10 CryptoCarlos21

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.

amotile avatar Oct 11 '22 09:10 amotile

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.

evanjs avatar Oct 11 '22 12:10 evanjs

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

Astropulse avatar Oct 16 '22 15:10 Astropulse

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.

Astropulse avatar Apr 06 '23 15:04 Astropulse

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

Zibbibbo avatar May 27 '23 22:05 Zibbibbo

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.

jhancuff avatar Jun 08 '23 21:06 jhancuff

One button prompt and ddetailer would be awesome.

jimmiles avatar Sep 07 '23 00:09 jimmiles