Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Fix ref_images metadata format for FLUX Kontext recall (#8791)

Alexander Eichhorn72491e2153bf
diff --git a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts
index b82f558554..c47e8d6d1c 100644
--- a/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts
+++ b/invokeai/frontend/web/src/features/nodes/util/graph/generation/buildFLUXGraph.ts
@@ -277,7 +277,7 @@ export const buildFLUXGraph = async (arg: GraphBuilderArg): Promise<GraphBuilder
}
g.addEdge(flux2KontextCollect, 'collection', flux2Denoise, 'kontext_conditioning');
- g.upsertMetadata({ ref_images: [validFlux2RefImageConfigs] }, 'merge');
+ g.upsertMetadata({ ref_images: validFlux2RefImageConfigs }, 'merge');
}
if (generationMode === 'txt2img') {
@@ -379,7 +379,7 @@ export const buildFLUXGraph = async (arg: GraphBuilderArg): Promise<GraphBuilder
}
g.addEdge(fluxKontextCollect, 'collection', fluxDenoise, 'kontext_conditioning');
- g.upsertMetadata({ ref_images: [validFLUXKontextConfigs] }, 'merge');
+ g.upsertMetadata({ ref_images: validFLUXKontextConfigs }, 'merge');
}
}