Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#4 from byzod/master
Browse files Browse the repository at this point in the history
fix AUTOMATIC1111#3451 scripts ignores file format settings for grids
  • Loading branch information
uservar committed Nov 21, 2022
2 parents 4b12dc3 + 9cc48fe commit 3da6b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/prompt_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def run(self, p, put_at_start):
processed.infotexts.insert(0, processed.infotexts[0])

if opts.grid_save:
images.save_image(processed.images[0], p.outpath_grids, "prompt_matrix", prompt=original_prompt, seed=processed.seed, grid=True, p=p)
images.save_image(processed.images[0], p.outpath_grids, "prompt_matrix", extension=opts.grid_format, prompt=original_prompt, seed=processed.seed, grid=True, p=p)

return processed
2 changes: 1 addition & 1 deletion scripts/xy_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,6 @@ def cell(x, y):
)

if opts.grid_save:
images.save_image(processed.images[0], p.outpath_grids, "xy_grid", prompt=p.prompt, seed=processed.seed, grid=True, p=p)
images.save_image(processed.images[0], p.outpath_grids, "xy_grid", extension=opts.grid_format, prompt=p.prompt, seed=processed.seed, grid=True, p=p)

return processed

0 comments on commit 3da6b0b

Please sign in to comment.