diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-10 12:41:29 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-10 12:41:29 +0000 |
commit | 43bdbe934a3fbd4a1d2be18bcf0e38f0f088d10c (patch) | |
tree | dc8c3b5899d826b47becbbff4801d56a92546b65 /modules/images.py | |
parent | 13eec4f3d4081fdc43883c5ef02e471a2b6c7212 (diff) | |
download | stable-diffusion-webui-gfx803-43bdbe934a3fbd4a1d2be18bcf0e38f0f088d10c.tar.gz stable-diffusion-webui-gfx803-43bdbe934a3fbd4a1d2be18bcf0e38f0f088d10c.tar.bz2 stable-diffusion-webui-gfx803-43bdbe934a3fbd4a1d2be18bcf0e38f0f088d10c.zip |
enabled negative prompt by default
fixed broken empty directory when prompt does not start withl etter
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"]
|