Class ControlImageConfig (1.75.0)

ControlImageConfig(
    control_type: typing.Literal[
        "CONTROL_TYPE_DEFAULT",
        "CONTROL_TYPE_SCRIBBLE",
        "CONTROL_TYPE_FACE_MESH",
        "CONTROL_TYPE_CANNY",
    ],
    enable_control_image_computation: typing.Optional[bool] = False,
)

Control image config.

Attributes

Name Description
control_type Literal['CONTROL_TYPE_DEFAULT', 'CONTROL_TYPE_SCRIBBLE', 'CONTROL_TYPE_FACE_MESH', 'CONTROL_TYPE_CANNY']
Control type for the image. Can take the following values: * CONTROL_TYPE_DEFAULT: Default control type * CONTROL_TYPE_SCRIBBLE: Scribble control type * CONTROL_TYPE_FACE_MESH: Face mesh control type * CONTROL_TYPE_CANNY: Canny control type
enable_control_image_computation Optional[bool]
When set to True, the control image will be computed by the model based on the control type. When set to False, the control image will be provided by the user.