Skip to content

Commit 23c1a6b

Browse files
fix(nodes): make ResizeLatents w/h optional
now you can connect to them in node editor
1 parent 5c58bc6 commit 23c1a6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/invocations/latent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ class ResizeLatentsInvocation(BaseInvocation):
519519
# Inputs
520520
latents: Optional[LatentsField] = Field(
521521
description="The latents to resize")
522-
width: int = Field(
522+
width: Union[int, None] = Field(default=512,
523523
ge=64, multiple_of=8, description="The width to resize to (px)")
524-
height: int = Field(
524+
height: Union[int, None] = Field(default=512,
525525
ge=64, multiple_of=8, description="The height to resize to (px)")
526526
mode: LATENTS_INTERPOLATION_MODE = Field(
527527
default="bilinear", description="The interpolation mode")

0 commit comments

Comments
 (0)