modify unnecessary sting assignment as it's going to get overwritten

This commit is contained in:
w-e-w 2022-10-22 17:48:59 +09:00 committed by AUTOMATIC1111
parent c5d90628a4
commit 7d4a4db9ea
1 changed files with 2 additions and 2 deletions

View File

@ -420,8 +420,8 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
file_decoration = apply_filename_pattern(file_decoration, p, seed, prompt) + suffix file_decoration = apply_filename_pattern(file_decoration, p, seed, prompt) + suffix
basecount = get_next_sequence_number(path, basename) basecount = get_next_sequence_number(path, basename)
fullfn = "a.png" fullfn = None
fullfn_without_extension = "a" fullfn_without_extension = None
for i in range(500): for i in range(500):
fn = f"{basecount + i:05}" if basename == '' else f"{basename}-{basecount + i:04}" fn = f"{basecount + i:05}" if basename == '' else f"{basename}-{basecount + i:04}"
fullfn = os.path.join(path, f"{fn}{file_decoration}.{extension}") fullfn = os.path.join(path, f"{fn}{file_decoration}.{extension}")