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/extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/extras.py') diff --git a/modules/extras.py b/modules/extras.py index cb083544..55a782c7 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -69,7 +69,7 @@ def run_extras(image, gfpgan_visibility, codeformer_visibility, codeformer_weigh while len(cached_images) > 2: del cached_images[next(iter(cached_images.keys()))] - images.save_image(image, outpath, "", None, info=info, extension=opts.samples_format, short_filename=True, no_prompt=True, pnginfo_section_name="extras", existing_info=existing_pnginfo) + images.save_image(image, path=outpath, basename="", seed=None, prompt=None, extension=opts.samples_format, info=info, short_filename=True, no_prompt=True, grid=False, pnginfo_section_name="extras", existing_info=existing_pnginfo) return image, plaintext_to_html(info), '' -- cgit v1.2.3