From fface339ae291fb1c1ca235225a977a986e31169 Mon Sep 17 00:00:00 2001 From: Martin Kristiansen Date: Wed, 19 Jul 2023 11:38:13 -0400 Subject: [PATCH] Same fix for ImageToLatentsInvocation --- invokeai/app/invocations/latent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index ed20704e41..2529f23cd5 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -686,7 +686,7 @@ class ImageToLatentsInvocation(BaseInvocation): tiled: bool = Field( default=False, description="Encode latents by overlaping tiles(less memory consumption)") - fp32: bool = Field(False, description="Decode in full precision") + fp32: bool = Field(default=choose_precision(choose_torch_device())=='float32', description="Decode in full precision") # Schema customisation