fix(nodes): controlnet input accepts list or single controlnet

This commit is contained in:
psychedelicious
2023-05-19 16:10:39 +10:00
committed by Kent Keirsey
parent 7467fa5e57
commit 020f3ccf07
3 changed files with 38 additions and 5 deletions

View File

@ -178,8 +178,7 @@ class TextToLatentsInvocation(BaseInvocation):
# seamless: bool = Field(default=False, description="Whether or not to generate an image that can tile without seams", )
# seamless_axes: str = Field(default="", description="The axes to tile the image on, 'x' and/or 'y'")
progress_images: bool = Field(default=False, description="Whether or not to produce progress images during generation", )
control: list[ControlField] = Field(default=None, description="The controlnet(s) to use")
# control: ControlField | List[ControlField] = Field(default=None, description="The controlnet(s) to use")
control: Union[ControlField, List[ControlField]] = Field(default=None, description="The controlnet(s) to use")
# fmt: on
# Schema customisation