From 0f95f7cea321ce949b987cf3a0f9e41ce3740a15 Mon Sep 17 00:00:00 2001 From: Andy Luhrs Date: Thu, 27 Apr 2023 11:03:07 -0700 Subject: [PATCH] Fix inpaint node Seems like this is the only change needed for the existing inpaint node to work. --- invokeai/app/invocations/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/invocations/generate.py b/invokeai/app/invocations/generate.py index df79baa0f3..0bf48eefcf 100644 --- a/invokeai/app/invocations/generate.py +++ b/invokeai/app/invocations/generate.py @@ -247,8 +247,8 @@ class InpaintInvocation(ImageToImageInvocation): outputs = Inpaint(model).generate( prompt=self.prompt, - init_img=image, - init_mask=mask, + init_image=image, + mask_image=mask, step_callback=partial(self.dispatch_progress, context, source_node_id), **self.dict( exclude={"prompt", "image", "mask"}