Skip to content

Commit

Permalink
fix grid prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmandic committed Sep 13, 2024
1 parent 42d02a3 commit a415e93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/xyz_grid_on.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"')


Expand Down

0 comments on commit a415e93

Please sign in to comment.