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/img2img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/img2img.py') diff --git a/modules/img2img.py b/modules/img2img.py index 70c99e33..08e15911 100644 --- a/modules/img2img.py +++ b/modules/img2img.py @@ -96,7 +96,7 @@ def img2img(prompt: str, negative_prompt: str, prompt_style: str, init_img, init grid = images.image_grid(history, batch_size, rows=1) - images.save_image(grid, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=info, short_filename=not opts.grid_extended_filename, p=p) + images.save_image(grid, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=info, short_filename=not opts.grid_extended_filename, grid=True, p=p) processed = Processed(p, history, initial_seed, initial_info) -- cgit v1.2.3