fix default filename pattern

This commit is contained in:
w-e-w 2022-10-25 00:46:28 +09:00 committed by AUTOMATIC1111
parent faed465a0b
commit 91c1e1e6a9
1 changed files with 3 additions and 1 deletions

View File

@ -477,8 +477,10 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
if forced_filename is None: if forced_filename is None:
if short_filename or seed is None: if short_filename or seed is None:
file_decoration = "" file_decoration = ""
else: elif opts.save_to_dirs:
file_decoration = opts.samples_filename_pattern or "[seed]" file_decoration = opts.samples_filename_pattern or "[seed]"
else:
file_decoration = opts.samples_filename_pattern or "[seed]-[prompt_spaces]"
add_number = opts.save_images_add_number or file_decoration == '' add_number = opts.save_images_add_number or file_decoration == ''