SoftEdgePreprocessor<T>

Models & Types ยท AiDotNet.Diffusion.Preprocessing

Soft edge detection preprocessor for ControlNet conditioning.

Inheritance: DiffusionPreprocessorBase<T> โ†’ SoftEdgePreprocessor<T>

For Beginners

Unlike Canny edges which are sharp black-and-white lines, soft edges have smooth gradients. This gives ControlNet more flexibility in how strictly it follows the structure.

How It Works

Produces soft (non-binary) edge maps with smooth transitions, providing more flexible structural guidance than hard Canny edges.

Constructors

Constructor Summary
SoftEdgePreprocessor()

Properties

Property Summary
ControlType OutputControlType { get; }
int OutputChannels { get; }

Methods

Method Summary
Tensor<T> Transform(Tensor<T> data)