From 60b3c6a2011ecbcb2fd2cd07140d10d1d1cca330 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:59:29 +1000 Subject: [PATCH] feat(nodes): provide board_id in image creation --- invokeai/app/invocations/image.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/invokeai/app/invocations/image.py b/invokeai/app/invocations/image.py index 140dbe4919..0301768219 100644 --- a/invokeai/app/invocations/image.py +++ b/invokeai/app/invocations/image.py @@ -993,6 +993,7 @@ class SaveImageInvocation(BaseInvocation): image=image, image_origin=ResourceOrigin.INTERNAL, image_category=ImageCategory.GENERAL, + board_id=self.board.board_id if self.board else None, node_id=self.id, session_id=context.graph_execution_state_id, is_intermediate=self.is_intermediate, @@ -1000,12 +1001,6 @@ class SaveImageInvocation(BaseInvocation): workflow=self.workflow, ) - if self.board: - context.services.board_images.add_image_to_board( - board_id=self.board.board_id, - image_name=image_dto.image_name, - ) - return ImageOutput( image=ImageField(image_name=image_dto.image_name), width=image_dto.width,