1
1
from invokeai .backend .bria .controlnet_bria import BRIA_CONTROL_MODES
2
2
from pydantic import BaseModel , Field
3
- from invokeai .invocation_api import ImageOutput
3
+ from invokeai .invocation_api import ImageOutput , Classification
4
4
from invokeai .app .invocations .baseinvocation import (
5
5
BaseInvocation ,
6
6
BaseInvocationOutput ,
7
7
invocation ,
8
8
invocation_output ,
9
9
)
10
- from invokeai .app .invocations .fields import FieldDescriptions , ImageField , InputField , OutputField , UIType
10
+ from invokeai .app .invocations .fields import FieldDescriptions , ImageField , InputField , OutputField , UIType , WithBoard , WithMetadata
11
11
from invokeai .app .invocations .model import ModelIdentifierField
12
12
from invokeai .app .services .shared .invocation_context import InvocationContext
13
13
import numpy as np
@@ -26,9 +26,9 @@ class BriaControlNetField(BaseModel):
26
26
mode : BRIA_CONTROL_MODES = Field (description = "The mode of the ControlNet" )
27
27
conditioning_scale : float = Field (description = "The weight given to the ControlNet" )
28
28
29
- @invocation_output ("flux_controlnet_output " )
29
+ @invocation_output ("bria_controlnet_output " )
30
30
class BriaControlNetOutput (BaseInvocationOutput ):
31
- """FLUX ControlNet info"""
31
+ """Bria ControlNet info"""
32
32
33
33
control : BriaControlNetField = OutputField (description = FieldDescriptions .control )
34
34
preprocessed_images : ImageField = OutputField (description = "The preprocessed control image" )
@@ -40,8 +40,9 @@ class BriaControlNetOutput(BaseInvocationOutput):
40
40
tags = ["controlnet" , "bria" ],
41
41
category = "controlnet" ,
42
42
version = "1.0.0" ,
43
+ classification = Classification .Prototype ,
43
44
)
44
- class BriaControlNetInvocation (BaseInvocation ):
45
+ class BriaControlNetInvocation (BaseInvocation , WithMetadata , WithBoard ):
45
46
"""Collect Bria ControlNet info to pass to denoiser node."""
46
47
47
48
control_image : ImageField = InputField (description = "The control image" )
0 commit comments