fix to work highres_fix_latents_upscaling

This commit is contained in:
Kohya S
2023-09-18 21:12:41 +09:00
parent d337bbf8a0
commit db7a28ac25

View File

@@ -766,7 +766,7 @@ class PipelineLike:
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 main(args):
# 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"]