mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix recorded seed in highres fix
This commit is contained in:
@@ -2963,6 +2963,8 @@ def main(args):
|
|||||||
for i, (image, prompt, negative_prompts, seed, clip_prompt) in enumerate(
|
for i, (image, prompt, negative_prompts, seed, clip_prompt) in enumerate(
|
||||||
zip(images, prompts, negative_prompts, seeds, clip_prompts)
|
zip(images, prompts, negative_prompts, seeds, clip_prompts)
|
||||||
):
|
):
|
||||||
|
if highres_fix:
|
||||||
|
seed -= 1 # record original seed
|
||||||
metadata = PngInfo()
|
metadata = PngInfo()
|
||||||
metadata.add_text("prompt", prompt)
|
metadata.add_text("prompt", prompt)
|
||||||
metadata.add_text("seed", str(seed))
|
metadata.add_text("seed", str(seed))
|
||||||
|
|||||||
@@ -2019,6 +2019,8 @@ def main(args):
|
|||||||
for i, (image, prompt, negative_prompts, seed, clip_prompt) in enumerate(
|
for i, (image, prompt, negative_prompts, seed, clip_prompt) in enumerate(
|
||||||
zip(images, prompts, negative_prompts, seeds, clip_prompts)
|
zip(images, prompts, negative_prompts, seeds, clip_prompts)
|
||||||
):
|
):
|
||||||
|
if highres_fix:
|
||||||
|
seed -= 1 # record original seed
|
||||||
metadata = PngInfo()
|
metadata = PngInfo()
|
||||||
metadata.add_text("prompt", prompt)
|
metadata.add_text("prompt", prompt)
|
||||||
metadata.add_text("seed", str(seed))
|
metadata.add_text("seed", str(seed))
|
||||||
|
|||||||
Reference in New Issue
Block a user