aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel <113887727+mortstraze@users.noreply.github.com>2022-09-26 09:30:18 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-27 05:58:47 +0000
commit8dcac9ac81db587cdac59d01db85c01579156392 (patch)
tree8ea3f4164de301153442bc2344e765197b9fe6e1
parent258a2d4f064c2c3c0d63c7cf8966d2260fea3f33 (diff)
downloadstable-diffusion-webui-gfx803-8dcac9ac81db587cdac59d01db85c01579156392.tar.gz
stable-diffusion-webui-gfx803-8dcac9ac81db587cdac59d01db85c01579156392.tar.bz2
stable-diffusion-webui-gfx803-8dcac9ac81db587cdac59d01db85c01579156392.zip
Grids saving to subdirectory when setting unchecked
Fixed grids saving to subdirectory when the setting is unchecked but "save images to subdirectory" was checked.
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index 0246e094..3abf3181 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -406,7 +406,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
index_of_first_image = 1
if opts.grid_save:
- images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p)
+ images.save_image(grid, p.outpath_grids, "grid", all_seeds[0], all_prompts[0], opts.grid_format, info=infotext(), short_filename=not opts.grid_extended_filename, p=p, grid=True)
devices.torch_gc()
return Processed(p, output_images, all_seeds[0], infotext(), subseed=all_subseeds[0], all_prompts=all_prompts, all_seeds=all_seeds, all_subseeds=all_subseeds, index_of_first_image=index_of_first_image)