mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Update gen_img.py
This commit is contained in:
@@ -2802,7 +2802,6 @@ def main(args):
|
|||||||
m = re.match(r"f (.+)", parg, re.IGNORECASE)
|
m = re.match(r"f (.+)", parg, re.IGNORECASE)
|
||||||
if m: # filename
|
if m: # filename
|
||||||
filename = m.group(1)
|
filename = m.group(1)
|
||||||
logger.info(f"filename: {filename}")
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
except ValueError as ex:
|
except ValueError as ex:
|
||||||
@@ -2813,6 +2812,7 @@ def main(args):
|
|||||||
if filename is not None and (args.images_per_prompt > 1 or len(raw_prompts) > 1):
|
if filename is not None and (args.images_per_prompt > 1 or len(raw_prompts) > 1):
|
||||||
fileext = os.path.splitext(filename)
|
fileext = os.path.splitext(filename)
|
||||||
filename = fileext[0] + "_%s" % pi + fileext[1]
|
filename = fileext[0] + "_%s" % pi + fileext[1]
|
||||||
|
logger.info(f"filename: {filename}")
|
||||||
|
|
||||||
# override Deep Shrink
|
# override Deep Shrink
|
||||||
if ds_depth_1 is not None:
|
if ds_depth_1 is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user