fix: outpaint result not getting pasted back correctly

This commit is contained in:
blessedcoolant 2024-02-23 04:54:16 +05:30 committed by psychedelicious
parent 8e1fbd6ed1
commit cc82ce820a
3 changed files with 4 additions and 4 deletions

View File

@ -963,9 +963,7 @@ class IAICanvasPasteBackInvocation(BaseInvocation, WithMetadata, WithBoard):
target_image = context.images.get_pil(self.target_image.image_name)
mask = self._prepare_mask(context.images.get_pil(self.mask.image_name))
# Merge the bands back together
source_image.paste(target_image, (0, 0), mask)
image_dto = context.images.save(image=source_image)
return ImageOutput.build(image_dto)

View File

@ -176,6 +176,7 @@ export const buildCanvasOutpaintGraph = (
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
use_cache: false,
mask_blur: canvasCoherenceEdgeSize,
},
},
edges: [
@ -468,7 +469,7 @@ export const buildCanvasOutpaintGraph = (
},
{
source: {
node_id: LATENTS_TO_IMAGE,
node_id: INPAINT_IMAGE_RESIZE_DOWN,
field: 'image',
},
destination: {

View File

@ -176,6 +176,7 @@ export const buildCanvasSDXLOutpaintGraph = (
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
use_cache: false,
mask_blur: canvasCoherenceEdgeSize,
},
},
edges: [
@ -477,7 +478,7 @@ export const buildCanvasSDXLOutpaintGraph = (
},
{
source: {
node_id: LATENTS_TO_IMAGE,
node_id: INPAINT_IMAGE_RESIZE_DOWN,
field: 'image',
},
destination: {