InvokeAI/invokeai/app/invocations
psychedelicious c16eba78ab feat(nodes): add WithBoard field helper class
This class works the same way as `WithMetadata` - it simply adds a `board` field to the node. The context wrapper function is able to pull the board id from this. This allows image-outputting nodes to get a board field "for free", and have their outputs automatically saved to it.

This is a breaking change for node authors who may have a field called `board`, because it makes `board` a reserved field name. I'll look into how to avoid this - maybe by naming this invoke-managed field `_board` to avoid collisions?

Supporting changes:
- `WithBoard` is added to all image-outputting nodes, giving them the ability to save to board.
- Unused, duplicate `WithMetadata` and `WithWorkflow` classes are deleted from `baseinvocation.py`. The "real" versions are in `fields.py`.
- Remove `LinearUIOutputInvocation`. Now that all nodes that output images also have a `board` field by default, this node is no longer necessary. See comment here for context: https://github.com/invoke-ai/InvokeAI/pull/5491#discussion_r1480760629
- Without `LinearUIOutputInvocation`, the `ImagesInferface.update` method is no longer needed, and removed.

Note: This commit does not bump all node versions. I will ensure that is done correctly before merging the PR of which this commit is a part.

Note: A followup commit will implement the frontend changes to support this change.
2024-02-15 17:30:02 +11:00
..
custom_nodes feat: workflow library (#5148) 2023-12-09 09:48:38 +11:00
__init__.py resolve which paths can be None 2023-11-28 09:30:49 +11:00
baseinvocation.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
collections.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
compel.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
controlnet_image_processors.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
cv.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
facetools.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
fields.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
image.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
infill.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
ip_adapter.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
latent.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
math.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
metadata.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
model.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
noise.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
onnx.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
param_easing.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
primitives.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
prompt.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
sdxl.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
strings.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
t2i_adapter.py fix(nodes): restore type annotations for InvocationContext 2024-02-15 17:30:02 +11:00
tiles.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
upscale.py feat(nodes): add WithBoard field helper class 2024-02-15 17:30:02 +11:00
util.py fix(nodes): fix constraints/validation for controlnet 2024-01-02 07:28:53 -05:00