mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 19:22:32 +00:00
enabled negative prompt by default
fixed broken empty directory when prompt does not start withl etter
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
Reference in New Issue
Block a user