sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

[Feature Request] Global state variables

Open witchspace1 opened this issue 2 years ago • 6 comments

Hello. I'd like to ask if you could add global state variables to the extension, as some post-processing extensions would need it to properly work with Dynamic Prompts. See Bing-su/adetailer#62

witchspace1 avatar May 17 '23 09:05 witchspace1

In principle it is possible to do, but it would need cooperation with other extensions. As far as I know, there currently is no expectation that extensions are able to communicate with each other. It would be good to identify what demand there is for this - let's keep this issue open for a while to see if any other use cases pop up.

adieyal avatar May 23 '23 05:05 adieyal

I just started using Adetailer and was sad to see that I can't use dynamic prompts with it, so +1 here for anything that can be done to get these two able to work together!

ImpossibleAd436 avatar May 26 '23 12:05 ImpossibleAd436

Hi! @adieyal Is there any news on this? Now that we can specify different prompts and models for hires fix, it would be really nice being able to chop up the main prompt and use bits as variables in other context for the same gen. Additionally, since there are more and more detection/segmentation models popping up, not being able to pull from the main prompt shows its limits.

witchspace1 avatar Sep 02 '23 17:09 witchspace1

I think I see what I was looking for, It's if you use a wildcard in the main prompt, whatever line the wildcard uses from the text file is to also reflect it into Adetailer so, Wildcard in main prompt chooses a chair, and then you have the wildcard in Adetailer prompt box of the same name will choose a chair, instead of randomizing it, it will pull what the main prompt got.

VERY VERY USEFUL!!! Especially for expressions you want to be randomized, it can detail the expression the wildcard chose.

ICodeDiffusion avatar Jan 23 '24 00:01 ICodeDiffusion

+1

Nziner avatar Feb 22 '24 08:02 Nziner