From f9f9d04b5fa9ffb6e0462fa691aee8fcc1bb733c Mon Sep 17 00:00:00 2001 From: JustAnOkapi Date: Tue, 13 Sep 2022 15:28:03 -0500 Subject: prevent extras from saving in dir Extras have none of the vars used in dir names, so they cant be saved into dirs. +grid code cleanup --- modules/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/processing.py') diff --git a/modules/processing.py b/modules/processing.py index f33560ee..ef25d43d 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -321,7 +321,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: output_images.insert(0, grid) 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, grid=True, p=p) devices.torch_gc() return Processed(p, output_images, all_seeds[0], infotext()) -- cgit v1.2.1