fix recorded seed in highres fix

This commit is contained in:
Kohya S
2023-07-30 16:48:52 +09:00
parent f61996b425
commit 7e474d21ca
2 changed files with 4 additions and 0 deletions

View File

@@ -2963,6 +2963,8 @@ def main(args):
for i, (image, prompt, negative_prompts, seed, clip_prompt) in enumerate(
zip(images, prompts, negative_prompts, seeds, clip_prompts)
):
if highres_fix:
seed -= 1 # record original seed
metadata = PngInfo()
metadata.add_text("prompt", prompt)
metadata.add_text("seed", str(seed))