From 009407ea3f61afef1e986874128651f1aba6aa52 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 19 May 2023 16:10:16 +1000 Subject: [PATCH] fix(ui): fix node ui type hints --- invokeai/app/invocations/latent.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index 5ebc3de8ab..894a832c60 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -181,9 +181,10 @@ class TextToLatentsInvocation(BaseInvocation): class Config(InvocationConfig): schema_extra = { "ui": { - "tags": ["latents", "image"], + "tags": ["latents"], "type_hints": { - "model": "model" + "model": "model", + "control": "control", } }, } @@ -350,17 +351,6 @@ class LatentsToLatentsInvocation(TextToLatentsInvocation): latents: Optional[LatentsField] = Field(description="The latents to use as a base image") strength: float = Field(default=0.5, description="The strength of the latents to use") - # Schema customisation - class Config(InvocationConfig): - schema_extra = { - "ui": { - "tags": ["latents"], - "type_hints": { - "model": "model" - } - }, - } - def invoke(self, context: InvocationContext) -> LatentsOutput: noise = context.services.latents.get(self.noise.latents_name) latent = context.services.latents.get(self.latents.latents_name)