DynamicCFGParams defines the parameters for the dynamic thresholding UI component

interface DynamicCFGParams {
    cfgMode: "Constant" | "Linear" | "Cosine" | "CosineRepeating" | "PowerDown" | "PowerUp";
    cfgScaleMin: number;
    enabled: boolean;
    mimicMode: "Constant" | "Linear" | "Cosine" | "CosineRepeating" | "PowerDown" | "PowerUp";
    mimicScale: number;
    mimicScaleMin: number;
    schedVal: number;
    thresholdPercentile: number;
}

Properties

cfgMode: "Constant" | "Linear" | "Cosine" | "CosineRepeating" | "PowerDown" | "PowerUp"

The mode for scheduling the CFG scale value

cfgScaleMin: number

The minimum value when using a scheduled CFG scale

enabled: boolean

Whether dynamic thresholding is enabled

mimicMode: "Constant" | "Linear" | "Cosine" | "CosineRepeating" | "PowerDown" | "PowerUp"

The mode for scheduling the mimic scale value

mimicScale: number

The scale to mimic for CFG

mimicScaleMin: number

The minimum value when using a scheduled mimic scale

schedVal: number

The scheduler value used for some modes

thresholdPercentile: number

The percentile threshold for clamping latent values