mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 22:35:09 +00:00
fix to work highres_fix_latents_upscaling
This commit is contained in:
@@ -766,7 +766,7 @@ class PipelineLike:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
if return_latents:
|
if return_latents:
|
||||||
return (latents, False)
|
return latents
|
||||||
|
|
||||||
latents = 1 / sdxl_model_util.VAE_SCALE_FACTOR * latents
|
latents = 1 / sdxl_model_util.VAE_SCALE_FACTOR * latents
|
||||||
if vae_batch_size >= batch_size:
|
if vae_batch_size >= batch_size:
|
||||||
@@ -1814,7 +1814,7 @@ def main(args):
|
|||||||
|
|
||||||
# promptがないとき、画像のPngInfoから取得する
|
# promptがないとき、画像のPngInfoから取得する
|
||||||
if init_images is not None and len(prompt_list) == 0 and not args.interactive:
|
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:
|
for img in init_images:
|
||||||
if "prompt" in img.text:
|
if "prompt" in img.text:
|
||||||
prompt = img.text["prompt"]
|
prompt = img.text["prompt"]
|
||||||
|
|||||||
Reference in New Issue
Block a user