Nodes/More Math/Image math
ComfyUI Node

Image 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
Image math
  • V
  • F
  • Expression
  • stack
  • IMAGE
  • STACK
length_mismatcherror
batching0
remember_stackfalse
CategoryMore math

Inputs (7)

NameTypeDefaultDescription
VCOMFY_AUTOGROW_V3
FCOMFY_AUTOGROW_V3
ExpressionSTRING,SYNTAX_TREEI0*(1-F0)+I1*F0Expression to apply on input images
length_mismatchCOMBOerrorHow to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero.
batchingINT0
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
IMAGEIMAGE
STACKSTACK