fix xyz apply

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2024-10-06 08:38:37 -04:00
parent 209c19922e
commit b2109424e5
4 changed files with 11 additions and 4 deletions
+2 -4
View File
@@ -207,10 +207,8 @@ def apply_lora(p, x, xs):
return
x = os.path.basename(x)
p.prompt = p.prompt + f" <lora:{x}:{shared.opts.extra_networks_default_multiplier}>"
if p.all_prompts is not None:
p.all_prompts = len(p.all_prompts) * [p.prompt]
if p.all_negative_prompts is not None:
p.all_negative_prompts = len(p.all_negative_prompts) * [p.prompt]
p.all_prompts = None
p.all_negative_prompts = None
shared.log.debug(f'XYZ grid apply LoRA: "{x}"')