Update gen_img.py

This commit is contained in:
DKnight54
2025-01-30 03:00:34 +08:00
committed by GitHub
parent 8db164b052
commit ec6ca91e6a

View File

@@ -2812,7 +2812,7 @@ 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):
fileext = os.path.splitext(filename)
filename = fileext[0] + "_%s" + fileext[1] % pi
filename = fileext[0] + "_%s" % pi + fileext[1]
# override Deep Shrink
if ds_depth_1 is not None: