InvokeAI/invokeai/frontend/web/src/features
psychedelicious 922716d2ab feat(ui): store graph in image metadata
The previous super-minimal implementation had a major issue - the saved workflow didn't take into account batched field values. When generating with multiple iterations or dynamic prompts, the same workflow with the first prompt, seed, etc was stored in each image.

As a result, when the batch results in multiple queue items, only one of the images has the correct workflow - the others are mismatched.

To work around this, we can store the _graph_ in the image metadata (alongside the workflow, if generated via workflow editor). When loading a workflow from an image, we can choose to load the workflow or the graph, preferring the workflow.

Internally, we need to update images router image-saving services. The changes are minimal.

To avoid pydantic errors deserializing the graph, when we extract it from the image, we will leave it as stringified JSON and let the frontend's more sophisticated and flexible parsing handle it. The worklow is also changed to just return stringified JSON, so the API is consistent.
2024-05-18 09:04:37 +10:00
..
canvas fix(ui): use translations for canvas layer select 2024-05-13 08:30:18 +10:00
changeBoardModal refactor(ui): refactor reducer list 2024-02-03 07:39:19 -05:00
controlAdapters tidy(ui): use Invocation<> helper type in OG control adapters 2024-05-15 14:09:44 +10:00
controlLayers tidy(ui): move testing-only types to test file 2024-05-15 14:09:44 +10:00
deleteImageModal chore(ui): lint 2024-05-08 08:39:18 -04:00
dnd feat(ui): move viewport state to nanostores 2024-05-17 13:24:23 +10:00
dynamicPrompts tidy(ui): clean up unused code 5 2024-03-01 10:42:33 +11:00
gallery feat(ui): store graph in image metadata 2024-05-18 09:04:37 +10:00
hrf perf(ui): optimize useFeatureStatus 2024-04-15 22:50:54 +10:00
lora [Refactor] Update min and max values for LoRACard weight input 2024-05-17 10:38:26 +10:00
metadata fix(ui): CA processor cancellation 2024-05-13 08:23:02 +10:00
modelManagerV2 feat(ui): update mm-related translations 2024-05-02 23:09:26 -04:00
nodes feat(ui): store graph in image metadata 2024-05-18 09:04:37 +10:00
parameters Revert "feat(ui): SDXL clip skip" 2024-05-17 15:08:04 -07:00
prompt feat(ui): single getModelConfigs query 2024-03-14 23:37:40 +11:00
queue fix(ui): use pluralization for invoke button tooltip 2024-05-13 08:29:31 +10:00
sdxl Revert "feat(ui): negative prompt boxes are italicized" 2024-05-09 07:52:52 -04:00
settingsAccordions feat(ui): move strength to init image layer 2024-05-07 11:02:16 +10:00
system fix(ui): update hotkeys for viewer 2024-05-06 08:55:32 -04:00
ui feat(ui): better invoke button checks 2024-05-13 08:29:31 +10:00
workflowLibrary feat(ui): store graph in image metadata 2024-05-18 09:04:37 +10:00