InvokeAI/invokeai/app
psychedelicious 4599517c6c feat: add private node for linear UI image outputting
Add a LinearUIOutputInvocation node to be the new terminal node for Linear UI graphs. This node is private and hidden from the Workflow Editor, as it is an implementation detail.

The Linear UI was using the Save Image node for this purpose. It allowed every linear graph to end a single node type, which handled saving metadata and board. This substantially reduced the complexity of the linear graphs.

This caused two related issues:
- Images were saved to disk twice
- Noticeable delay between when an image was decoded and showed up in the UI

To resolve this, the new LinearUIOutputInvocation node will handle adding an image to a board if one is provided.

Metadata is no longer provided in this unified node. Instead, the metadata graph helpers now need to know the node to add metadata to and provide it to the last node that actually outputs an image. This is a `l2i` node for txt2img & img2img graphs, and a different image-outputting node for canvas graphs.

HRF poses another complication, in that it changes the terminal node. To handle this, a new metadata util is added called `setMetadataReceivingNode()`. HRF calls this to change the node that should receive the graph's metadata.

This resolves the duplicate images issue and improves perf without otherwise changing the user experience.
2023-11-16 18:56:59 +11:00
..
api fixed ruff formatting issues 2023-11-13 18:15:17 -05:00
assets/images tweaks in response to psychedelicious review of PR 2023-07-26 15:27:04 +10:00
invocations feat: add private node for linear UI image outputting 2023-11-16 18:56:59 +11:00
services resolve conflicts; blackify 2023-11-13 18:12:45 -05:00
shared fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
util chore: ruff check - fix pycodestyle 2023-11-11 10:55:33 +11:00
api_app.py Merge branch 'main' into refactor/model-manager-2 2023-11-14 07:51:57 +11:00