enabled negative prompt by default

fixed broken empty directory when prompt does not start withl etter
This commit is contained in:
AUTOMATIC
2022-09-10 15:41:29 +03:00
parent 13eec4f3d4
commit 43bdbe934a
5 changed files with 8 additions and 4 deletions

View File

@@ -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"]