fix(nodes): make ResizeLatents w/h optional

now you can connect to them in node editor
This commit is contained in:
psychedelicious 2023-07-14 15:04:02 +10:00
parent 5c58bc6348
commit 23c1a6b9d5

View File

@ -519,9 +519,9 @@ class ResizeLatentsInvocation(BaseInvocation):
# Inputs # Inputs
latents: Optional[LatentsField] = Field( latents: Optional[LatentsField] = Field(
description="The latents to resize") 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)") 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)") ge=64, multiple_of=8, description="The height to resize to (px)")
mode: LATENTS_INTERPOLATION_MODE = Field( mode: LATENTS_INTERPOLATION_MODE = Field(
default="bilinear", description="The interpolation mode") default="bilinear", description="The interpolation mode")