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

New Magic Prompt being applied to each ADetailer prompt

Open wiseoldowl-66 opened this issue 1 year ago • 2 comments

Hello all,

The ask: can magic prompt be disabled for ADetailer prompts in the same way that it can be for negative prompts?

I've noticed that when Magic Prompt is enabled, it applies a new set of prompts to each detected item in the same picture, resulting in some interesting styles specific to certain body parts.

For example, with a prompt that just says "hands" when three were detected:

image

There is already an option "Don't apply to negative prompts".

I wonder whether a similar option can be added along the lines of "Don't apply to ADetailer prompts"? Additionally, should the default behaviour when it is enabled be to use the same magic prompts as the main image, rather than generate new ones for each ADetailer prompt?

Thank you in advance.

wiseoldowl-66 avatar Jan 16 '24 16:01 wiseoldowl-66

I haven't used ADetailer and I don't know how it does its thing (all I know it interacts in many strange ways with this extension).

"Don't apply to negative prompts" is easy, because we simply have a different list of prompts and negative prompts: https://github.com/adieyal/sd-dynamic-prompts/blob/main/sd_dynamic_prompts/dynamic_prompting.py#L464-L468

but this extension is utterly unaware of ADetailer at all.

akx avatar Jan 16 '24 16:01 akx

Ah okay.

I can tell you the arguments in ADetailer appear to be ad_prompt and ad_negative_prompt but whether those can be disapplied in this extension or it's just an inherent incompatibility, I shall defer to your expertise!

wiseoldowl-66 avatar Jan 16 '24 16:01 wiseoldowl-66