ControlNetConfig

Fields
enableControlNet boolean

true if ControlNet is enabled.

conditions[] object (ControlNetConditionConfig)

Configurations for each condition.

originalImageWeight number

The weight for the original image. Valid range: [0, 1]. When set to 1.0, the output basically copies the input image. When set to 0.0, the output not respect the input image at all.

JSON representation
{
  "enableControlNet": boolean,
  "conditions": [
    {
      object (ControlNetConditionConfig)
    }
  ],
  "originalImageWeight": number
}

ControlNetConditionConfig

Fields
conditionName string

Currently supported conditions: * cannyEdges * depth

conditionMapBytesBase64Encoded string (bytes format)

When the condition map is provided by the user, we will not compute the condition map on our side.

A base64-encoded string.

conditionWeight number

The guidance weight for the condition signal. Valid range: [0, 1]. The higher the weight, the model respects the ControlNet condition more. The default value is 1.0 if unspecified.

conditionMaxT number

The strength of the ControlNet's effect on each diffusion step. Valid range: [0, 1].

JSON representation
{
  "conditionName": string,
  "conditionMapBytesBase64Encoded": string,
  "conditionWeight": number,
  "conditionMaxT": number
}