Update gen_img.py

This commit is contained in:
DKnight54
2025-01-30 02:58:03 +08:00
committed by GitHub
parent 1a1496ca93
commit 8db164b052

View File

@@ -2811,7 +2811,8 @@ def main(args):
# override filename to add index number if more than one image per prompt
if filename is not None and (args.images_per_prompt > 1 or len(raw_prompts) > 1):
filename = filename + "_%s" % pi
fileext = os.path.splitext(filename)
filename = fileext[0] + "_%s" + fileext[1] % pi
# override Deep Shrink
if ds_depth_1 is not None: