Skip to content

Commit 6a2856e

Browse files
JPPhotopsychedelicious
authored andcommitted
Updated field descriptions
1 parent 4dedd63 commit 6a2856e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

invokeai/app/invocations/latent.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,8 +1235,8 @@ def invoke(self, context: InvocationContext) -> LatentsOutput:
12351235
class IdealSizeOutput(BaseInvocationOutput):
12361236
"""Base class for invocations that output an image"""
12371237

1238-
width: int = OutputField(description="The ideal width of the image in pixels")
1239-
height: int = OutputField(description="The ideal height of the image in pixels")
1238+
width: int = OutputField(description="The ideal width of the image (in pixels)")
1239+
height: int = OutputField(description="The ideal height of the image (in pixels)")
12401240

12411241

12421242
@invocation(
@@ -1248,10 +1248,13 @@ class IdealSizeOutput(BaseInvocationOutput):
12481248
class IdealSizeInvocation(BaseInvocation):
12491249
"""Calculates the ideal size for generation to avoid duplication"""
12501250

1251-
width: int = InputField(default=1024, description="Target width")
1252-
height: int = InputField(default=576, description="Target height")
1253-
unet: UNetField = InputField(default=None, description="UNet submodel")
1254-
multiplier: float = InputField(default=1.0, description="Dimensional multiplier")
1251+
width: int = InputField(default=1024, description="Final image width")
1252+
height: int = InputField(default=576, description="Final image height")
1253+
unet: UNetField = InputField(default=None, description=FieldDescriptions.unet)
1254+
multiplier: float = InputField(
1255+
default=1.0,
1256+
description="Amount to multiply the model's dimensions by when calculating the ideal size (may result in initial generation artifacts if too large)",
1257+
)
12551258

12561259
def trim_to_multiple_of(self, *args, multiple_of=LATENT_SCALE_FACTOR):
12571260
return tuple((x - x % multiple_of) for x in args)

0 commit comments

Comments
 (0)