From 23c1a6b9d5b6ca39da579b650a54a32f1c773812 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 14 Jul 2023 15:04:02 +1000 Subject: [PATCH] fix(nodes): make ResizeLatents w/h optional now you can connect to them in node editor --- invokeai/app/invocations/latent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index da99afc50f..b3f95f3658 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -519,9 +519,9 @@ class ResizeLatentsInvocation(BaseInvocation): # Inputs latents: Optional[LatentsField] = Field( description="The latents to resize") - width: int = Field( + width: Union[int, None] = Field(default=512, ge=64, multiple_of=8, description="The width to resize to (px)") - height: int = Field( + height: Union[int, None] = Field(default=512, ge=64, multiple_of=8, description="The height to resize to (px)") mode: LATENTS_INTERPOLATION_MODE = Field( default="bilinear", description="The interpolation mode")