Nodes/pre_cfg_comfy_nodes_for_ComfyUI/Pre CFG gradient scaling
ComfyUI Node

Pre CFG gradient scaling

A ComfyUI node in model_patches/Pre CFG with 9 inputs and 1 output.

By Extraltodeus·Created 2 years ago·Updated about a year ago· 66
Pre CFG gradient scaling
  • model
  • input_mask
  • input_latent
  • MODEL
maximum_scale80
minimum_scale4.5
strength0.5
end_at_sigma0.28
converging_scalestrue
invert_maskfalse
Categorymodel_patches/Pre CFG

Inputs (9)

NameTypeDefaultDescription
modelMODEL
maximum_scaleFLOAT800–1000It is an equivalent to the CFG scale.
minimum_scaleFLOAT4.50–10It is an equivalent to the CFG scale.
strengthFLOAT0.50–10
end_at_sigmaFLOAT0.280–1000
converging_scalesBOOLEANtrue
invert_maskBOOLEANfalse
input_maskoptMASKIf only a mask is connected the scale becomes a CFG scale of what is being masked. When a latent is connected the mask defines what will be modified by the node.
input_latentoptLATENTIf a latent is connected the scale becomes the maximum scale allowed in which to seek similarity.

Outputs (1)

NameTypeDescription
MODELMODEL