Table of Contents

Class DiffusionTrialConfig<T>

Namespace
AiDotNet.AutoML
Assembly
AiDotNet.dll

Configuration for a diffusion model trial in AutoML.

public class DiffusionTrialConfig<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
DiffusionTrialConfig<T>
Inherited Members

Properties

BaseChannels

Gets or sets the base channels for the noise predictor.

public int BaseChannels { get; set; }

Property Value

int

GuidanceScale

Gets or sets the guidance scale for classifier-free guidance.

public double GuidanceScale { get; set; }

Property Value

double

InferenceSteps

Gets or sets the number of inference steps.

public int InferenceSteps { get; set; }

Property Value

int

LatentDim

Gets or sets the latent dimension (channels).

public int LatentDim { get; set; }

Property Value

int

LatentHeight

Gets or sets the latent spatial height (default: 64 for 512x512 images with 8x downscaling).

public int LatentHeight { get; set; }

Property Value

int

LatentWidth

Gets or sets the latent spatial width (default: 64 for 512x512 images with 8x downscaling).

public int LatentWidth { get; set; }

Property Value

int

LearningRate

Gets or sets the learning rate for training.

public double LearningRate { get; set; }

Property Value

double

NoisePredictorType

Gets or sets the noise predictor type.

public NoisePredictorType NoisePredictorType { get; set; }

Property Value

NoisePredictorType

NumResBlocks

Gets or sets the number of residual blocks per level.

public int NumResBlocks { get; set; }

Property Value

int

SchedulerType

Gets or sets the scheduler type.

public DiffusionSchedulerType SchedulerType { get; set; }

Property Value

DiffusionSchedulerType

Seed

Gets or sets the optional random seed.

public int? Seed { get; set; }

Property Value

int?

Methods

FromDictionary(Dictionary<string, object>)

Creates a configuration from a dictionary of parameters.

public static DiffusionTrialConfig<T> FromDictionary(Dictionary<string, object> parameters)

Parameters

parameters Dictionary<string, object>

Returns

DiffusionTrialConfig<T>

ToDictionary()

Converts the configuration to a dictionary of parameters.

public Dictionary<string, object> ToDictionary()

Returns

Dictionary<string, object>