Nodes/DistanceSampler/SamplerDistanceAdvanced
ComfyUI Node

SamplerDistanceAdvanced

A ComfyUI node in sampling/custom_sampling/samplers with 19 inputs and 1 output.

By Extraltodeus·Created 2 years ago·Updated about a year ago· 44
SamplerDistanceAdvanced
    • SAMPLER
    resample3
    resample_end-1
    cfgpptrue
    eta0.00
    s_noise1.00
    distance_step_eta0.00
    distance_step_s_noise1.00
    use_softmaxfalse
    use_slerpfalse
    perp_stepfalse
    use_negativefalse
    smoothfalse
    sharpenfalse
    distance_first0
    distance_last-1
    eta_first0
    eta_last-1
    distance_eta_first0
    distance_eta_last-1
    Categorysampling/custom_sampling/samplers

    Inputs (19)

    NameTypeDefaultDescription
    resampleINT3-1–320 all along gives Euler. 1 gives Heun. Anything starting from 2 will use the distance method. -1 will do remaining steps + 1 as the resample value. This can be pretty slow.
    resample_endINT-1-1–32How many resamples for the end. -1 means constant.
    cfgppBOOLEANtrueControls whether to use CFG++ sampling. When enabled, you should set CFG to a fairly low value.
    etaFLOAT0.000–32Controls the ancestralness of the main sampler steps. 0.0 means to use non-ancestral sampling. Note: May not work well with some of the other options.
    s_noiseFLOAT1.00-100–100Scale factor for ancestral noise added during sampling. Generally should be left at 1.0 and only has an effect when ancestral sampling is used.
    distance_step_etaFLOAT0.000–32Experimental option that allows using ancestral sampling for the internal distance steps. When used, should generally be a fairly low value such as 0.25. 0.0 means to use non-ancestral sampling for the internal distance steps.
    distance_step_s_noiseFLOAT1.00-100–100Scale factor for ancestral noise added in the internal distance steps. Generally should be left at 1.0 and only has an effect when distance_step_eta is non-zero.
    use_softmaxBOOLEANfalseRather than using a min/max normalization and an exponent will use a softmax instead.
    use_slerpBOOLEANfalseWill SLERP the predictions instead of doing a weighted average. The difference is more obvious when using use_negative.
    perp_stepBOOLEANfalseExperimental, not yet recommended.
    use_negativeBOOLEANfalseWill use the negative prediction to prepare the distance scores. This tends to give images with less errors from my testing.
    smoothBOOLEANfalseNot recommended, will make everything brighter. Not smoother.
    sharpenBOOLEANfalseNot recommended, attempts to sharpen the results but instead tends to make things fuzzy.
    distance_firstINT0-10000–10000First step to use distance sampling. You can use negative values to count from the end. Note: Steps are zero-based.
    distance_lastINT-1-10000–10000Last step to use distance sampling. You can use negative values to count from the end. Note: Steps are zero-based.
    eta_firstINT0-10000–10000First step to use ancestral sampling. Only applies when ETA is non-zero. You can use negative values to count from the end. Note: Steps are zero-based.
    eta_lastINT-1-10000–10000Last step to use ancestral sampling. Only applies when ETA is non-zero. You can use negative values to count from the end. Note: Steps are zero-based.
    distance_eta_firstINT0-10000–10000First step to use ancestral sampling for the distance steps. Only applies when distance ETA is non-zero. You can use negative values to count from the end. Note: Steps are zero-based.
    distance_eta_lastINT-1-10000–10000Last step to use ancestral sampling for the distance steps. Only applies when distance ETA is non-zero. You can use negative values to count from the end. Note: Steps are zero-based.

    Outputs (1)

    NameTypeDescription
    SAMPLERSAMPLER