From 91c1e1e6a92061b99c92a5b1d548535907d2ad96 Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Tue, 25 Oct 2022 00:46:28 +0900 Subject: [PATCH] fix default filename pattern --- modules/images.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/images.py b/modules/images.py index 0e044af24..286de2aef 100644 --- a/modules/images.py +++ b/modules/images.py @@ -477,8 +477,10 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i if forced_filename is None: if short_filename or seed is None: file_decoration = "" - else: + elif opts.save_to_dirs: 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 == ''