Class ControlImageConfig (1.122.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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.