ControlNetCondition<T>

Models & Types · AiDotNet.Diffusion.Control

Represents a single control condition input for multi-control ControlNet composition.

Implements: IEquatable<ControlNetCondition<T>>

For Beginners

This is like a labeled ingredient with a measured amount. Each control condition says “I’m a depth map with 80% influence” or “I’m a sketch with 50% influence”, so the model knows how much to pay attention to each control signal.

How It Works

Pairs a conditioning image/tensor with its type identifier and a blending weight, enabling weighted composition of multiple control signals. Used by ControlNet++ and ControlNet-Union models that support simultaneous multi-condition inputs.

Constructors

Constructor Summary
ControlNetCondition(ControlNetConditionType ConditionType, Tensor<T> ConditionImage, double Weight) Represents a single control condition input for multi-control ControlNet composition.

Properties

Property Summary
ControlNetConditionType ConditionType { get; set; } The semantic type of this control condition.
Tensor<T> ConditionImage { get; set; } The conditioning tensor (preprocessed control image).
double Weight { get; set; } Blending weight for this condition (0.0 to 1.0, default 1.0).

Methods

Method Summary
ControlNetCondition<T> <Clone>$()
bool Equals(ControlNetCondition<T> other)
bool Equals(object obj)
bool op_Equality(ControlNetCondition<T> left, ControlNetCondition<T> right)
bool op_Inequality(ControlNetCondition<T> left, ControlNetCondition<T> right)
int GetHashCode()
string ToString()
void Deconstruct(ControlNetConditionType ConditionType, Tensor<T> ConditionImage, double Weight)