diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-02 12:33:01 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-02 12:33:01 +0000 |
commit | 20008303428fed569d32ed05c21524ea81735207 (patch) | |
tree | 8ba4a141a398a2db4f3cc46406f63ccd0a5f8b5a /webui.py | |
parent | b743ac0ecfe666fe47685ab7bd52ba58ad5ca346 (diff) | |
download | stable-diffusion-webui-gfx803-20008303428fed569d32ed05c21524ea81735207.tar.gz stable-diffusion-webui-gfx803-20008303428fed569d32ed05c21524ea81735207.tar.bz2 stable-diffusion-webui-gfx803-20008303428fed569d32ed05c21524ea81735207.zip |
Change SD upscales to save as images rather than grids and to respect image saving settings.
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)
|