From 20008303428fed569d32ed05c21524ea81735207 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 2 Sep 2022 15:33:01 +0300 Subject: Change SD upscales to save as images rather than grids and to respect image saving settings. --- webui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'webui.py') diff --git a/webui.py b/webui.py index 0e798729..e59172df 100644 --- a/webui.py +++ b/webui.py @@ -1701,7 +1701,8 @@ def img2img(prompt: str, init_img, init_img_with_mask, steps: int, sampler_index combined_image = combine_grid(grid) - save_image(combined_image, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=initial_info, short_filename=not opts.grid_extended_filename) + if opts.samples_save: + save_image(combined_image, p.outpath_samples, "", initial_seed, prompt, opts.grid_format, info=initial_info) processed = Processed(p, [combined_image], initial_seed, initial_info) -- cgit v1.2.1