From 80d631118da50d9d2211eda471977c202c8fbd50 Mon Sep 17 00:00:00 2001 From: Jonathan <34005131+JPPhoto@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:17:55 -0500 Subject: [PATCH] Fix field ordering Changed fields to go in w/h x/y order. --- invokeai/app/invocations/mask.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/app/invocations/mask.py b/invokeai/app/invocations/mask.py index 2d414ac2bd..a7f3207764 100644 --- a/invokeai/app/invocations/mask.py +++ b/invokeai/app/invocations/mask.py @@ -10,17 +10,17 @@ from invokeai.app.invocations.primitives import MaskOutput title="Create Rectangle Mask", tags=["conditioning"], category="conditioning", - version="1.0.0", + version="1.0.1", ) class RectangleMaskInvocation(BaseInvocation, WithMetadata): """Create a rectangular mask.""" - height: int = InputField(description="The height of the entire mask.") width: int = InputField(description="The width of the entire mask.") - y_top: int = InputField(description="The top y-coordinate of the rectangular masked region (inclusive).") + height: int = InputField(description="The height of the entire mask.") x_left: int = InputField(description="The left x-coordinate of the rectangular masked region (inclusive).") - rectangle_height: int = InputField(description="The height of the rectangular masked region.") + y_top: int = InputField(description="The top y-coordinate of the rectangular masked region (inclusive).") rectangle_width: int = InputField(description="The width of the rectangular masked region.") + rectangle_height: int = InputField(description="The height of the rectangular masked region.") def invoke(self, context: InvocationContext) -> MaskOutput: mask = torch.zeros((1, self.height, self.width), dtype=torch.bool)