From 43bdbe934a3fbd4a1d2be18bcf0e38f0f088d10c Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 10 Sep 2022 15:41:29 +0300 Subject: enabled negative prompt by default fixed broken empty directory when prompt does not start withl etter --- 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 d8e74533..fc5d370f 100644 --- a/modules/images.py +++ b/modules/images.py @@ -263,7 +263,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i save_to_dirs = (is_a_grid and opts.grid_save_to_dirs) or (not is_a_grid and opts.save_to_dirs) if save_to_dirs and not no_prompt: - words = re_nonletters.split(prompt or "") + words = [x for x in re_nonletters.split(prompt or "") if len(x)>0] if len(words[0]) == 0: words = ["empty"] -- cgit v1.2.1