Nodes/More Math/Latent math
ComfyUI Node

Latent math

A ComfyUI node in More math with 7 inputs and 2 outputs.

By mcDandy·Created about a year ago·Updated about a month ago· 5
Latent math
  • V
  • F
  • Expression
  • stack
  • LATENT
  • STACK
length_mismatcherror
batching
remember_stackfalse
CategoryMore math

Inputs (7)

NameTypeDefaultDescription
VCOMFY_AUTOGROW_V3
FCOMFY_AUTOGROW_V3
ExpressionSTRING,SYNTAX_TREEI0*(1-F0)+I1*F0Expression to apply on input latents
length_mismatchCOMBOerrorHow to handle mismatched latent batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero.
batchingINT
remember_stackBOOLEANfalseIf enabled, stack is copied at output leading to changes being remembered during batch operations (node runs multiple times in sucession). If disabled each batch gets it's own copy of the stack.
stackoptSTACKAccess stack between nodes

Outputs (2)

NameTypeDescription
LATENTLATENT
STACKSTACK