Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Global state variables #431

Open
witchspace1 opened this issue May 17, 2023 · 5 comments
Open

[Feature Request] Global state variables #431

witchspace1 opened this issue May 17, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@witchspace1
Copy link

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

@adieyal
Copy link
Owner

adieyal commented May 23, 2023

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.

@ImpossibleAd436
Copy link

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!

@witchspace1
Copy link
Author

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.

@ICodeDiffusion
Copy link

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.

@Nziner
Copy link

Nziner commented Feb 22, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants