Skip to content

Commit

Permalink
fix to work highres_fix_latents_upscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
kohya-ss committed Sep 18, 2023
1 parent d337bbf commit db7a28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdxl_gen_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit db7a28a

Please sign in to comment.