Skip to content

Commit fd24d1a

Browse files
fix(ui): use expanded mask for paste-back when inpainting
1 parent 2b51949 commit fd24d1a

File tree

1 file changed

+1
-1
lines changed
  • invokeai/frontend/web/src/features/nodes/util/graph/generation

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/generation/addInpaint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export const addInpaint = async ({
129129

130130
// After denoising, resize the image and mask back to original size
131131
g.addEdge(l2i, 'image', resizeImageToOriginalSize, 'image');
132-
g.addEdge(createGradientMask, 'expanded_mask_area', resizeMaskToOriginalSize, 'image');
133132
g.addEdge(createGradientMask, 'expanded_mask_area', expandMask, 'mask');
133+
g.addEdge(expandMask, 'image', resizeMaskToOriginalSize, 'image');
134134

135135
// After denoising, resize the image and mask back to original size
136136
// Do the paste back if we are sending to gallery (in which case we want to see the full image), or if we are sending

0 commit comments

Comments
 (0)