mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: outpaint result not getting pasted back correctly
This commit is contained in:
parent
8e1fbd6ed1
commit
cc82ce820a
@ -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)
|
||||
|
@ -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: {
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user