From ef0cdb8a423a000cc9fd8726c51d25b484fc905f Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 10 Sep 2022 11:37:06 +0300 Subject: add batch count to sd upscale #169 fix writing empty prompt pictures to rroot directory instead of 'empty' suppress 'Denoising strength change factor' text inimage info unless using loopback mode --- modules/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/images.py') diff --git a/modules/images.py b/modules/images.py index f2de9d86..cfe88fa4 100644 --- a/modules/images.py +++ b/modules/images.py @@ -259,7 +259,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i if opts.save_to_dirs and not no_prompt: words = re_nonletters.split(prompt or "") - if len(words) == 0: + if len(words[0]) == 0: words = ["empty"] dirname = " ".join(words[0:opts.save_to_dirs_prompt_len]).strip() -- cgit v1.2.1