mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
Fix ref_images metadata format for FLUX Kontext recall (#8791)
Remove extra array wrapper when saving ref_images metadata for FLUX.2 Klein and FLUX.1 Kontext reference images. The double-nested array [[...]] was preventing recall from parsing the metadata correctly.
This commit is contained in:
committed by
GitHub
parent
3d0725072d
commit
728a6afeb2
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user