diff --git a/docs/nodes/defaultNodes.md b/docs/nodes/defaultNodes.md index 33561677c7..b022eeed14 100644 --- a/docs/nodes/defaultNodes.md +++ b/docs/nodes/defaultNodes.md @@ -45,7 +45,7 @@ The table below contains a list of the default nodes shipped with InvokeAI and t |ImageProcessor | Base class for invocations that preprocess images for ControlNet| |Resize Image | Resizes an image to specific dimensions| |Round Float | Rounds a float to a specified number of decimal places| -|Round To Multiple | Converts a float to an integer| +|Float to Integer | Converts a float to an integer. Optionally rounds to an even multiple of a input number.| |Scale Image | Scales an image by a factor| |Image to Latents | Encodes an image into latents.| |Add Invisible Watermark | Add an invisible watermark to an image| diff --git a/invokeai/app/invocations/math.py b/invokeai/app/invocations/math.py index 31e7b1b257..06d7d58d83 100644 --- a/invokeai/app/invocations/math.py +++ b/invokeai/app/invocations/math.py @@ -65,7 +65,7 @@ class RandomIntInvocation(BaseInvocation): @invocation("float_to_int", title="Float To Integer", tags=["math", "round", "integer", "float", "convert"], category="math", version="1.0.0") -class RoundToMultipleInvocation(BaseInvocation): +class FloatToIntegerInvocation(BaseInvocation): """Rounds a float number to (a multiple of) an integer.""" value: float = InputField(default=0, description="The value to round")