From db7a28ac25514eb7c318d7f1486abe7c8914ada7 Mon Sep 17 00:00:00 2001 From: Kohya S Date: Mon, 18 Sep 2023 21:12:41 +0900 Subject: [PATCH] fix to work highres_fix_latents_upscaling --- sdxl_gen_img.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdxl_gen_img.py b/sdxl_gen_img.py index 7d9c68bfb..3500df575 100755 --- a/sdxl_gen_img.py +++ b/sdxl_gen_img.py @@ -766,7 +766,7 @@ def __call__( return None if return_latents: - return (latents, False) + return latents latents = 1 / sdxl_model_util.VAE_SCALE_FACTOR * latents if vae_batch_size >= batch_size: @@ -1814,7 +1814,7 @@ def resize_images(imgs, size): # promptがないとき、画像のPngInfoから取得する if init_images is not None and len(prompt_list) == 0 and not args.interactive: - print("get prompts from images' meta data") + print("get prompts from images' metadata") for img in init_images: if "prompt" in img.text: prompt = img.text["prompt"]