Nodes/WAS Affine/Latent Affine Common Options
ComfyUI Node

Latent Affine Common Options

A ComfyUI node in latent/adjust with 16 inputs and 1 output.

By WASasquatch·Created 12 months ago·Updated 4 months ago· 5
Latent Affine Common Options
    • options
    mask_strength1.000
    threshold0.000
    invert_maskfalse
    sharpen_enablefalse
    sharpen_sigma0.80
    sharpen_amount0.30
    sharpen_threshold0.00
    blur_ksize0
    blur_sigma0.0
    clampfalse
    clamp_min-10.0
    clamp_max10.0
    frame_seed_stride9973
    compute_devicecpu
    device_index0
    solid_alpha1.000
    Categorylatent/adjust

    Inputs (16)

    NameTypeDefaultDescription
    mask_strengthFLOAT1.0000–2Scales mask intensity before applying scale/bias.
    thresholdFLOAT0.0000–1Binarize mask if > 0.
    invert_maskBOOLEANfalseInvert after threshold/blur.
    sharpen_enableBOOLEANfalseSharpen the generated noise/mask before threshold/blur using unsharp masking. Off by default.
    sharpen_sigmaFLOAT0.800–8Sharpen radius (Gaussian sigma). 0 disables. Typical: 0.5-1.5.
    sharpen_amountFLOAT0.30-5–5Sharpen gain. 0 = none; 0.3 subtle; 1.0 strong. Negative softens (inverse). Extended range [-5,5] for stronger effects.
    sharpen_thresholdFLOAT0.000–1Only enhance details where |orig-blur| exceeds this threshold. Helps avoid amplifying flat noise.
    blur_ksizeINT00–51Gaussian blur kernel size (odd).
    blur_sigmaFLOAT0.00–16Gaussian blur sigma.
    clampBOOLEANfalseClamp output latent values to [min,max].
    clamp_minFLOAT-10.0-100–0Lower clamp bound when clamping is enabled.
    clamp_maxFLOAT10.00–100Upper clamp bound when clamping is enabled.
    frame_seed_strideINT99731–100000Seed increment per frame when temporal mode is per_frame.
    compute_deviceCOMBOcpuWhere to generate procedural masks/noise. 'auto' prefers CUDA when available; otherwise CPU.
    device_indexINT00–7CUDA device index when using GPU.
    solid_alphaFLOAT1.0000–1Solid mask constant alpha (0..1). 0 disables; 1 full mask.

    Outputs (1)

    NameTypeDescription
    optionsDICT