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)
|
target_image = context.images.get_pil(self.target_image.image_name)
|
||||||
mask = self._prepare_mask(context.images.get_pil(self.mask.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)
|
source_image.paste(target_image, (0, 0), mask)
|
||||||
|
|
||||||
image_dto = context.images.save(image=source_image)
|
image_dto = context.images.save(image=source_image)
|
||||||
|
|
||||||
return ImageOutput.build(image_dto)
|
return ImageOutput.build(image_dto)
|
||||||
|
@ -176,6 +176,7 @@ export const buildCanvasOutpaintGraph = (
|
|||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
use_cache: false,
|
use_cache: false,
|
||||||
|
mask_blur: canvasCoherenceEdgeSize,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
edges: [
|
edges: [
|
||||||
@ -468,7 +469,7 @@ export const buildCanvasOutpaintGraph = (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: {
|
source: {
|
||||||
node_id: LATENTS_TO_IMAGE,
|
node_id: INPAINT_IMAGE_RESIZE_DOWN,
|
||||||
field: 'image',
|
field: 'image',
|
||||||
},
|
},
|
||||||
destination: {
|
destination: {
|
||||||
|
@ -176,6 +176,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
|||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
use_cache: false,
|
use_cache: false,
|
||||||
|
mask_blur: canvasCoherenceEdgeSize,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
edges: [
|
edges: [
|
||||||
@ -477,7 +478,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: {
|
source: {
|
||||||
node_id: LATENTS_TO_IMAGE,
|
node_id: INPAINT_IMAGE_RESIZE_DOWN,
|
||||||
field: 'image',
|
field: 'image',
|
||||||
},
|
},
|
||||||
destination: {
|
destination: {
|
||||||
|
Loading…
Reference in New Issue
Block a user