Skip to content

Commit 8a43d90

Browse files
fix(ui): positive prompt in upscale metadata
1 parent 4f9b976 commit 8a43d90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/buildMultidiffusionUpscaleGraph.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ export const buildMultidiffusionUpscaleGraph = async (state: RootState): Promise
138138
negative_style_prompt: prompts.negativeStyle,
139139
});
140140

141+
g.addEdgeToMetadata(positivePrompt, 'value', 'positive_prompt');
142+
141143
if (prompts.useMainPromptsForStyle) {
142144
g.addEdge(positivePrompt, 'value', posCond, 'style');
143145
g.addEdgeToMetadata(positivePrompt, 'value', 'positive_style_prompt');
@@ -179,6 +181,8 @@ export const buildMultidiffusionUpscaleGraph = async (state: RootState): Promise
179181
g.upsertMetadata({
180182
negative_prompt: prompts.negative,
181183
});
184+
185+
g.addEdgeToMetadata(positivePrompt, 'value', 'positive_prompt');
182186
}
183187

184188
const modelConfig = await fetchModelConfigWithTypeGuard(model.key, isNonRefinerMainModelConfig);

0 commit comments

Comments
 (0)