Skip to content

Commit

Permalink
Update gen_img.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DKnight54 authored Jan 29, 2025
1 parent 1a1496c commit 8db164b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,8 @@ def scale_and_round(x):

# 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:
Expand Down

0 comments on commit 8db164b

Please sign in to comment.