From e22211dac0f32402f9803c9ca3246ca573f3bfa9 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Wed, 15 May 2024 08:44:59 +0530 Subject: [PATCH] fix: Fix Outpaint not applying the expanded mask correctly In unscaled situations --- .../src/features/nodes/util/graph/buildCanvasOutpaintGraph.ts | 4 ++-- .../features/nodes/util/graph/buildCanvasSDXLOutpaintGraph.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasOutpaintGraph.ts index 6b564f464e..6114cb5e5c 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasOutpaintGraph.ts @@ -528,8 +528,8 @@ export const buildCanvasOutpaintGraph = async ( }, { source: { - node_id: MASK_RESIZE_DOWN, - field: 'image', + node_id: INPAINT_CREATE_MASK, + field: 'expanded_mask_area', }, destination: { node_id: CANVAS_OUTPUT, diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLOutpaintGraph.ts index c5c40b695a..eca498bf79 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/buildCanvasSDXLOutpaintGraph.ts @@ -584,8 +584,8 @@ export const buildCanvasSDXLOutpaintGraph = async ( }, { source: { - node_id: MASK_COMBINE, - field: 'image', + node_id: INPAINT_CREATE_MASK, + field: 'expanded_mask_area', }, destination: { node_id: CANVAS_OUTPUT,