Nodes/MD Nodes/MD: Noise Decay Scheduler (Advanced)
ComfyUI Node

MD: Noise Decay Scheduler (Advanced)

Advanced noise decay scheduler with visualization.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: Noise Decay Scheduler (Advanced)
    • scheduler
    • plot_image
    algorithm_typepolynomial
    decay_exponent2.0
    start_value1.00
    end_value0.00
    invert_curvefalse
    preview_steps20
    use_cachingtrue
    enable_temporal_smoothingfalse
    smoothing_window3
    custom_piecewise_points1.0,0.5,0.0
    fourier_frequency1.0
    debug_mode0 - Silent
    enable_profilingfalse
    CategoryMD_Nodes/Schedulers

    Inputs (13)

    NameTypeDefaultDescription
    algorithm_typeCOMBOpolynomialDECAY ALGORITHM • Purpose: Defines the mathematical function shaping the curve. • Options: Polynomial (Linear/Quad), Sigmoidal (S-Curve), Gaussian (Bell). • Trade-offs: Non-standard shapes (Fourier) may yield unpredictable injection results. ⭐ Recommended: 'polynomial' for standard diffusion ease-in.
    decay_exponentFLOAT2.00.1–10DECAY EXPONENT (STEEPNESS) • Purpose: Controls the rate/curvature of the decay drop-off. • Options: 1.0 = Linear, 2.0 = Standard Quadratic. • Trade-offs: Extreme values (>5.0) cause massive steps at the very beginning. ⭐ Recommended: 2.0 for standard ease-in.
    start_valueFLOAT1.00-2–2START VALUE • Purpose: The Y-value magnitude at the very first step (t=0). • Range: Typically 0.0 to 1.0. ⭐ Recommended: 1.0 for standard decay, 0.0 for attack envelopes.
    end_valueFLOAT0.00-2–2END VALUE • Purpose: The Y-value magnitude at the final step (t=max). • Range: Typically 0.0 to 1.0. ⭐ Recommended: 0.0 for standard decay.
    invert_curveBOOLEANfalseINVERT CURVE • Purpose: Flips the curve vertically (Calculates 1 - y). • Effect: Quickly turns a decay schedule into an attack schedule. ⭐ Recommended: False unless intentionally building inverse logic.
    preview_stepsINT202–1000PREVIEW STEPS • Purpose: Resolution fidelity of the generated plot image. • Range: 2 to 1000 samples. • Trade-offs: Higher values yield smoother curves but slightly slower node execution. ⭐ Recommended: 20-50 is sufficient for visualization.
    use_cachingBOOLEANtrueUSE CACHING • Purpose: Stores results in memory to avoid recalculating identical curves. • Trade-offs: Uses trace memory, but massively speeds up queue runs. ⭐ Recommended: True.
    enable_temporal_smoothingBOOLEANfalseENABLE SMOOTHING • Purpose: Applies a moving average filter to the final curve. • Effect: Softens sharp transitions, highly useful in 'piecewise' mode. ⭐ Recommended: False for pure mathematical curves.
    smoothing_windowoptINT32–20SMOOTHING WINDOW • Purpose: The rolling kernel size of the moving average filter. • Requirement: Active only if 'enable_temporal_smoothing' is True. ⭐ Recommended: 3-5 to retain general shape while blurring spikes.
    custom_piecewise_pointsoptSTRING1.0,0.5,0.0PIECEWISE POINTS • Purpose: Manual control anchors for the curve. • Requirement: Active only if Algorithm = 'piecewise'. • Format: Comma-separated floats (e.g., '1.0, 0.8, 0.2, 0.0').
    fourier_frequencyoptFLOAT1.00.1–10FOURIER FREQUENCY • Purpose: Number of oscillating cycles for the algorithm. • Requirement: Active only if Algorithm = 'fourier'. ⭐ Recommended: 1.0 creates a single bell-like cosine wave.
    debug_modeoptCOMBO0 - SilentLOGGING VERBOSITY • Purpose: Controls console output and structural profiling. • Options: 0 (Production), 1 (Analytics Report), 2 (Full trace). ⭐ Recommended: 0 - Silent.
    enable_profilingoptBOOLEANfalseENABLE PROFILING • Purpose: Measure generation time for performance tuning. • Note: Automatically enabled if debug_mode >= 1.

    Outputs (2)

    NameTypeDescription
    schedulerSCHEDULER
    plot_imageIMAGE