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

Possible to use Unprompted in conjunction with ADetailer? #168

Open
HWiese1980 opened this issue Jul 13, 2023 · 2 comments
Open

Possible to use Unprompted in conjunction with ADetailer? #168

HWiese1980 opened this issue Jul 13, 2023 · 2 comments

Comments

@HWiese1980
Copy link

Hello,

I would like to use the Unprompted A1111 extension together with ADetailer.

ADetailer has its own prompts and negative prompts to do its magic. It would be great if that prompt could also be altered by Unprompted, preferably in a way that variables remained consistent.

E.g., if my image prompt was something like

photo [choose]man|woman|dog|cat[/choose] in the [choose]house|garden|bathtub[/choose]

came out like

photo man in the bathtub

my ADetailer prompt should somehow (maybe by using named variables) follow along. It shouldn't suddenly contain dog instead of man or garden instead of bathtub.

Thanks for the great job!

@ThereforeGames
Copy link
Owner

Hi @HWiese1980,

Thank you for reaching out.

The WebUI runs extensions in alphabetical order - it sounds like the issue here is that ADetailer is receiving your original prompt before Unprompted has a chance to process it.

For the majority of situations, we want Unprompted to go first. You can accomplish this by simply renaming the extension folder from unprompted to _unprompted then restarting the WebUI.

Let me know if that solves the problem. If not, please give me more info (such as a screenshot or console log) so I can get a better idea of what ADetailer is supposed to receive. Thanks!

@HWiese1980
Copy link
Author

HWiese1980 commented Jul 20, 2023

That might help in the cases where I leave the specific prompt of ADetailer empty. My request goes towards altering the specific prompt of the ADetailer extension as well in case it is explicitly given and does not use the original prompt.

ADetailer has its own prompt which only defaults to the same as the original prompt (probably altered by unprompted) if I leave it empty.

Oh, and thank you for your response, too, of course! :-)

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

No branches or pull requests

2 participants