diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSD1Graph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSD1Graph.ts index 4ac130d15e..2471d24e06 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSD1Graph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSD1Graph.ts @@ -28,7 +28,7 @@ import { addSeamless } from 'features/nodes/util/graph/generation/addSeamless'; import { addTextToImage } from 'features/nodes/util/graph/generation/addTextToImage'; import { addWatermarker } from 'features/nodes/util/graph/generation/addWatermarker'; import { Graph } from 'features/nodes/util/graph/generation/Graph'; -import { getBoardField, getSizes } from 'features/nodes/util/graph/graphBuilderUtils'; +import { getBoardField, getPresetModifiedPrompts, getSizes } from 'features/nodes/util/graph/graphBuilderUtils'; import type { Invocation } from 'services/api/types'; import { isNonRefinerMainModelConfig } from 'services/api/types'; import { assert } from 'tsafe'; @@ -53,12 +53,12 @@ export const buildSD1Graph = async (state: RootState, manager: CanvasManager): P vaePrecision, seed, vae, - positivePrompt, - negativePrompt, } = params; assert(model, 'No model found in state'); + const { positivePrompt, negativePrompt } = getPresetModifiedPrompts(state); + const { originalSize, scaledSize } = getSizes(bbox); const g = new Graph(CONTROL_LAYERS_GRAPH); diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSDXLGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSDXLGraph.ts index 031873c1e9..94a195b7d4 100644 --- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSDXLGraph.ts +++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildSDXLGraph.ts @@ -51,8 +51,6 @@ export const buildSDXLGraph = async (state: RootState, manager: CanvasManager): shouldUseCpuNoise, vaePrecision, vae, - positivePrompt, - negativePrompt, refinerModel, refinerStart, } = params; @@ -61,7 +59,7 @@ export const buildSDXLGraph = async (state: RootState, manager: CanvasManager): const { originalSize, scaledSize } = getSizes(bbox); - const { positiveStylePrompt, negativeStylePrompt } = getPresetModifiedPrompts(state); + const { positivePrompt, negativePrompt, positiveStylePrompt, negativeStylePrompt } = getPresetModifiedPrompts(state); const g = new Graph(SDXL_CONTROL_LAYERS_GRAPH); const modelLoader = g.addNode({