Remove BoundingBoxInvocation field name overrides.

This commit is contained in:
Ryan Dick 2024-08-01 14:05:44 -04:00
parent 44b21f10f1
commit 675ffc2757

View File

@ -498,10 +498,10 @@ class BoundingBoxCollectionOutput(BaseInvocationOutput):
class BoundingBoxInvocation(BaseInvocation): class BoundingBoxInvocation(BaseInvocation):
"""Create a bounding box manually by supplying box coordinates""" """Create a bounding box manually by supplying box coordinates"""
x_min: int = InputField(default=0, description="x-coordinate of the bounding box's top left vertex", title="X1") x_min: int = InputField(default=0, description="x-coordinate of the bounding box's top left vertex")
y_min: int = InputField(default=0, description="y-coordinate of the bounding box's top left vertex", title="Y1") y_min: int = InputField(default=0, description="y-coordinate of the bounding box's top left vertex")
x_max: int = InputField(default=0, description="x-coordinate of the bounding box's bottom right vertex", title="X2") x_max: int = InputField(default=0, description="x-coordinate of the bounding box's bottom right vertex")
y_max: int = InputField(default=0, description="y-coordinate of the bounding box's bottom right vertex", title="Y2") y_max: int = InputField(default=0, description="y-coordinate of the bounding box's bottom right vertex")
def invoke(self, context: InvocationContext) -> BoundingBoxOutput: def invoke(self, context: InvocationContext) -> BoundingBoxOutput:
bounding_box = BoundingBoxField(x_min=self.x_min, y_min=self.y_min, x_max=self.x_max, y_max=self.y_max) bounding_box = BoundingBoxField(x_min=self.x_min, y_min=self.y_min, x_max=self.x_max, y_max=self.y_max)