diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasImageToImageGraph.ts index 8f5fe9f2b8..5c89dcbf29 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasImageToImageGraph.ts @@ -330,6 +330,7 @@ export const buildCanvasImageToImageGraph = async ( clip_skip: clipSkip, strength, init_image: initialImage.image_name, + _canvas_objects: state.canvas.layerState.objects, }, CANVAS_OUTPUT ); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasInpaintGraph.ts index c995c38a3c..20304b8830 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasInpaintGraph.ts @@ -1,5 +1,6 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; +import { addCoreMetadataNode } from 'features/nodes/util/graph/canvas/metadata'; import { CANVAS_INPAINT_GRAPH, CANVAS_OUTPUT, @@ -421,6 +422,15 @@ export const buildCanvasInpaintGraph = async ( }); } + addCoreMetadataNode( + graph, + { + generation_mode: 'inpaint', + _canvas_objects: state.canvas.layerState.objects, + }, + CANVAS_OUTPUT + ); + // Add Seamless To Graph if (seamlessXAxis || seamlessYAxis) { addSeamlessToLinearGraph(state, graph, modelLoaderNodeId); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasOutpaintGraph.ts index e4a9b11b96..2c85b20222 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasOutpaintGraph.ts @@ -1,5 +1,6 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; +import { addCoreMetadataNode } from 'features/nodes/util/graph/canvas/metadata'; import { CANVAS_OUTPAINT_GRAPH, CANVAS_OUTPUT, @@ -579,6 +580,15 @@ export const buildCanvasOutpaintGraph = async ( ); } + addCoreMetadataNode( + graph, + { + generation_mode: 'outpaint', + _canvas_objects: state.canvas.layerState.objects, + }, + CANVAS_OUTPUT + ); + // Add Seamless To Graph if (seamlessXAxis || seamlessYAxis) { addSeamlessToLinearGraph(state, graph, modelLoaderNodeId); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLImageToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLImageToImageGraph.ts index 186dfa53b3..b4549ff582 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLImageToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLImageToImageGraph.ts @@ -332,6 +332,7 @@ export const buildCanvasSDXLImageToImageGraph = async ( init_image: initialImage.image_name, positive_style_prompt: positiveStylePrompt, negative_style_prompt: negativeStylePrompt, + _canvas_objects: state.canvas.layerState.objects, }, CANVAS_OUTPUT ); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLInpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLInpaintGraph.ts index 277b713079..dfbe2436d2 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLInpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLInpaintGraph.ts @@ -1,5 +1,6 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; +import { addCoreMetadataNode } from 'features/nodes/util/graph/canvas/metadata'; import { CANVAS_OUTPUT, INPAINT_CREATE_MASK, @@ -432,6 +433,15 @@ export const buildCanvasSDXLInpaintGraph = async ( }); } + addCoreMetadataNode( + graph, + { + generation_mode: 'sdxl_inpaint', + _canvas_objects: state.canvas.layerState.objects, + }, + CANVAS_OUTPUT + ); + // Add Seamless To Graph if (seamlessXAxis || seamlessYAxis) { addSeamlessToLinearGraph(state, graph, modelLoaderNodeId); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLOutpaintGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLOutpaintGraph.ts index b09d7d8b90..d58796575c 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLOutpaintGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLOutpaintGraph.ts @@ -1,5 +1,6 @@ import { logger } from 'app/logging/logger'; import type { RootState } from 'app/store/store'; +import { addCoreMetadataNode } from 'features/nodes/util/graph/canvas/metadata'; import { CANVAS_OUTPUT, INPAINT_CREATE_MASK, @@ -588,6 +589,15 @@ export const buildCanvasSDXLOutpaintGraph = async ( ); } + addCoreMetadataNode( + graph, + { + generation_mode: 'sdxl_outpaint', + _canvas_objects: state.canvas.layerState.objects, + }, + CANVAS_OUTPUT + ); + // Add Seamless To Graph if (seamlessXAxis || seamlessYAxis) { addSeamlessToLinearGraph(state, graph, modelLoaderNodeId); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLTextToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLTextToImageGraph.ts index b2a8aa6ada..b9e8e011b3 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLTextToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasSDXLTextToImageGraph.ts @@ -291,6 +291,7 @@ export const buildCanvasSDXLTextToImageGraph = async (state: RootState): Promise steps, rand_device: use_cpu ? 'cpu' : 'cuda', scheduler, + _canvas_objects: state.canvas.layerState.objects, }, CANVAS_OUTPUT ); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasTextToImageGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasTextToImageGraph.ts index 8ce5134480..fe33ab5cf3 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasTextToImageGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/canvas/buildCanvasTextToImageGraph.ts @@ -280,6 +280,7 @@ export const buildCanvasTextToImageGraph = async (state: RootState): Promise