fix: update adetailer prompt, negatives

This commit is contained in:
Dowon
2024-04-09 21:15:13 +09:00
parent 218e0ce94e
commit d0efa0fded

View File

@@ -615,11 +615,17 @@ class AfterDetailerScript(scripts.Script):
f"[-] ADetailer: applied {ordinal(n + 1)} ad_prompt: {processed.all_prompts[0]!r}"
)
k = "ADetailer prompt" + suffix(n)
p.extra_generation_params[k] = processed.all_prompts[0]
if p.negative_prompt != processed.all_negative_prompts[0]:
print(
f"[-] ADetailer: applied {ordinal(n + 1)} ad_negative_prompt: {processed.all_negative_prompts[0]!r}"
)
k = "ADetailer negative prompt" + suffix(n)
p.extra_generation_params[k] = processed.all_prompts[0]
@staticmethod
def need_call_process(p) -> bool:
if p.scripts is None: