From a415e93b45651ac8e5650574f3f366347cee7614 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 13 Sep 2024 12:39:10 -0400 Subject: [PATCH] fix grid prompt --- scripts/xyz_grid_on.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/xyz_grid_on.py b/scripts/xyz_grid_on.py index 931595f23..ac362ba06 100644 --- a/scripts/xyz_grid_on.py +++ b/scripts/xyz_grid_on.py @@ -46,7 +46,9 @@ def apply_prompt(p, x, xs): shared.log.warning(f"XYZ grid: prompt S/R did not find {xs[0]} in prompt or negative prompt.") else: p.prompt = p.prompt.replace(xs[0], x) + p.all_prompts = p.batch_size * [p.prompt] p.negative_prompt = p.negative_prompt.replace(xs[0], x) + p.all_negative_prompts = p.batch_size * [p.negative_prompt] shared.log.debug(f'XYZ grid apply prompt: "{xs[0]}"="{x}"')