diff --git a/comfy_api/latest/_io.py b/comfy_api/latest/_io.py index 42dc14c1c..efe3a655f 100644 --- a/comfy_api/latest/_io.py +++ b/comfy_api/latest/_io.py @@ -1125,7 +1125,7 @@ class ImageCompare(ComfyTypeI): def as_dict(self): return super().as_dict() -@comfytype(io_type="BOUNDINGBOX") +@comfytype(io_type="BOUNDING_BOX") class BoundingBox(ComfyTypeIO): Type = dict diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py index 8e06ba11a..2a3fb65e9 100644 --- a/comfy_extras/nodes_images.py +++ b/comfy_extras/nodes_images.py @@ -48,20 +48,20 @@ class ImageCrop(IO.ComfyNode): crop = execute # TODO: remove -class IntToBoundingBox(IO.ComfyNode): +class BoundingBox(IO.ComfyNode): @classmethod def define_schema(cls): return IO.Schema( - node_id="IntToBoundingBox", - display_name="INT to Bounding Box", - category="utils", + node_id="PrimitiveBoundingBox", + display_name="Bounding Box", + category="utils/primitive", inputs=[ IO.Int.Input("x", default=0, min=0, max=MAX_RESOLUTION), IO.Int.Input("y", default=0, min=0, max=MAX_RESOLUTION), IO.Int.Input("width", default=512, min=1, max=MAX_RESOLUTION), IO.Int.Input("height", default=512, min=1, max=MAX_RESOLUTION), ], - outputs=[IO.BoundingBox.Output(display_name="BOUNDINGBOX")], + outputs=[IO.BoundingBox.Output()], ) @classmethod @@ -651,7 +651,7 @@ class ImagesExtension(ComfyExtension): async def get_node_list(self) -> list[type[IO.ComfyNode]]: return [ ImageCrop, - IntToBoundingBox, + BoundingBox, RepeatImageBatch, ImageFromBatch, ImageAddNoise,