ThereforeGames/unprompted

Possible to use Unprompted in conjunction with ADetailer?

Opened this issue · 2 comments

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!

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!

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! :-)