InvokeAI/invokeai/app/invocations
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
..
custom_nodes feat(nodes): change expected structure for custom nodes 2023-10-20 14:28:16 +11:00
__init__.py chore: ruff check - fix flake8-comprensions 2023-11-11 10:55:23 +11:00
baseinvocation.py chore: ruff format 2023-11-11 10:55:40 +11:00
collections.py feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
compel.py fix(backend): apply clip skip after lora 2023-11-14 11:30:15 +11:00
controlnet_image_processors.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
cv.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
facetools.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
image.py feat: add private node for linear UI image outputting 2023-11-16 18:56:59 +11:00
infill.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
ip_adapter.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
latent.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
math.py chore: ruff check - fix pycodestyle 2023-11-11 10:55:33 +11:00
metadata.py fix(nodes): fix hrf_enabled metadata item 2023-11-16 18:47:31 +11:00
model.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
noise.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
onnx.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00
param_easing.py chore: ruff check - fix flake8-comprensions 2023-11-11 10:55:23 +11:00
primitives.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
prompt.py feat(api): chore: pydantic & fastapi upgrade 2023-10-17 14:59:25 +11:00
sdxl.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
strings.py Prompts from file support nodes (#3964) 2023-09-13 08:06:38 +00:00
t2i_adapter.py fix(nodes): create app/shared/ module to prevent circular imports 2023-11-09 16:41:55 +11:00
upscale.py fix(nodes): bump version of nodes post-pydantic v2 2023-11-16 11:14:26 +11:00