Nodes/ComfyUI-sonar/SonarLatentOperationAdvanced
ComfyUI Node

SonarLatentOperationAdvanced

Allows scheduling and other advanced features for latent operations. If you attach the optional extra LATENT_OPERATIONS, they will be called in sequence _before_ blending or output scaling.

By blepping·Created 3 years ago·Updated 4 days ago· 49
SonarLatentOperationAdvanced
  • operation
  • operation_alt
  • operation_2
  • operation_3
  • operation_4
  • operation_5
  • LATENT_OPERATION
start_sigma-1.000
end_sigma0.000
input_multiplier1.000
output_multiplier1.000
difference_multiplier1.000
blend_modeinject
blend_strength0.500
Categorylatent/advanced/operations

Inputs (13)

NameTypeDefaultDescription
operationLATENT_OPERATIONLatent operation to apply.
start_sigmaFLOAT-1.000-1–10000First sigma the effect becomes active. You can set a negative value here to use whatever the model's maximum sigma is.
end_sigmaFLOAT0.0000–10000Last sigma the effect is active.
input_multiplierFLOAT1.000-10000–10000Flat multiplier on the input to the latent operation. The multiplied input is *not* used when calculating the difference, it is only passed to the operation.
output_multiplierFLOAT1.000-10000–10000Flat multiplier on the output from the latent operation. Occurs before blending or calculating the difference.
difference_multiplierFLOAT1.000-10000–10000Flat multiplier on the difference or change from the original that the operation performed. Occurs after output_multiplier and before blending applies.
blend_modeCOMBOinjectControls how the change from the operation is combined with the input. The default of inject just adds it scaled by the blend strength. With 1.0 blend strength, this is just using the output from the operation with no change.
blend_strengthFLOAT0.500-10000–10000Strength of the blend.
operation_altoptLATENT_OPERATIONOptional alternative operation that will be used when the primary one isn't enabled. May be useful in a case when you want one operation between sigma 1.0 and 0.5 and then a difference operation for lower sigmas which is kind of annoying to specify manually (you'd need to do something like configure another operation to start at 0.499999 or something).
operation_2optLATENT_OPERATIONOptional LATENT_OPERATION. The operations will be applied in sequence.
operation_3optLATENT_OPERATIONOptional LATENT_OPERATION. The operations will be applied in sequence.
operation_4optLATENT_OPERATIONOptional LATENT_OPERATION. The operations will be applied in sequence.
operation_5optLATENT_OPERATIONOptional LATENT_OPERATION. The operations will be applied in sequence.

Outputs (1)

NameTypeDescription
LATENT_OPERATIONLATENT_OPERATION