From 5a801ecbd2aff956611c07fbb684abce43697c32 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Wed, 28 Jan 2026 16:02:14 +0100 Subject: [PATCH] tile,error,pad everywhere --- more_math/AudioMathNode.py | 2 +- more_math/ClipMathNode.py | 2 +- more_math/ConditioningMathNode.py | 2 +- more_math/ImageMathNode.py | 2 +- more_math/LatentMathNode.py | 2 +- more_math/MaskMathNode.py | 2 +- more_math/ModelMathNode.py | 2 +- more_math/Parser/UnifiedMathVisitor.py | 1 - more_math/SigmasMathNode.py | 2 +- more_math/VaeMathNode.py | 2 +- more_math/VideoMathNode.py | 2 +- more_math/deprecated/AudioMathNode.py | 2 +- more_math/deprecated/ClipMathNode.py | 2 +- more_math/deprecated/ConditioningMathNode.py | 3 ++- more_math/deprecated/ImageMathNode.py | 2 +- more_math/deprecated/LatentMathNode.py | 2 +- more_math/deprecated/MaskMathNode.py | 2 +- more_math/deprecated/ModelMathNode.py | 2 +- more_math/deprecated/VaeMathNode.py | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/more_math/AudioMathNode.py b/more_math/AudioMathNode.py index 51d5824..97e674e 100644 --- a/more_math/AudioMathNode.py +++ b/more_math/AudioMathNode.py @@ -35,7 +35,7 @@ class AudioMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on input audio"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/ClipMathNode.py b/more_math/ClipMathNode.py index ef714c5..9de1a5c 100644 --- a/more_math/ClipMathNode.py +++ b/more_math/ClipMathNode.py @@ -23,7 +23,7 @@ class CLIPMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "passthrough", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." ) diff --git a/more_math/ConditioningMathNode.py b/more_math/ConditioningMathNode.py index 8796468..8627ac6 100644 --- a/more_math/ConditioningMathNode.py +++ b/more_math/ConditioningMathNode.py @@ -30,7 +30,7 @@ class ConditioningMathNode(io.ComfyNode): io.String.Input(id="Expression_pi", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on pooled_input part of conditioning"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/ImageMathNode.py b/more_math/ImageMathNode.py index b312b82..5eff658 100644 --- a/more_math/ImageMathNode.py +++ b/more_math/ImageMathNode.py @@ -32,7 +32,7 @@ class ImageMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on input images"), # Changed ID to Expression to match AudioMathNode pattern, or keep Image? AudioMathNode used "Expression". io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/LatentMathNode.py b/more_math/LatentMathNode.py index a83899d..a72033b 100644 --- a/more_math/LatentMathNode.py +++ b/more_math/LatentMathNode.py @@ -37,7 +37,7 @@ class LatentMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on input latents"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched latent batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/MaskMathNode.py b/more_math/MaskMathNode.py index 116b2a5..12f48ba 100644 --- a/more_math/MaskMathNode.py +++ b/more_math/MaskMathNode.py @@ -29,7 +29,7 @@ class MaskMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on input masks"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched mask batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/ModelMathNode.py b/more_math/ModelMathNode.py index 765b658..8e1fd23 100644 --- a/more_math/ModelMathNode.py +++ b/more_math/ModelMathNode.py @@ -24,7 +24,7 @@ class ModelMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "passthrough", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." ) diff --git a/more_math/Parser/UnifiedMathVisitor.py b/more_math/Parser/UnifiedMathVisitor.py index 664db55..ff2f4fc 100644 --- a/more_math/Parser/UnifiedMathVisitor.py +++ b/more_math/Parser/UnifiedMathVisitor.py @@ -1,4 +1,3 @@ -from ast import If import torch import math import inspect diff --git a/more_math/SigmasMathNode.py b/more_math/SigmasMathNode.py index a26949a..10b9f14 100644 --- a/more_math/SigmasMathNode.py +++ b/more_math/SigmasMathNode.py @@ -28,7 +28,7 @@ class SigmasMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on input images"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/VaeMathNode.py b/more_math/VaeMathNode.py index 24eb1bd..ffcc5cd 100644 --- a/more_math/VaeMathNode.py +++ b/more_math/VaeMathNode.py @@ -24,7 +24,7 @@ class VAEMathNode(io.ComfyNode): io.String.Input(id="Expression", default="I0*(1-F0)+I1*F0", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." ) diff --git a/more_math/VideoMathNode.py b/more_math/VideoMathNode.py index 422ca2e..ae609ba 100644 --- a/more_math/VideoMathNode.py +++ b/more_math/VideoMathNode.py @@ -41,7 +41,7 @@ class VideoMathNode(io.ComfyNode): io.String.Input(id="Audio", default="a*(1-w)+b*w", tooltip="Expression for the audio component"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched frame/sample counts. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing as zero." ) diff --git a/more_math/deprecated/AudioMathNode.py b/more_math/deprecated/AudioMathNode.py index 4fad72b..65aff81 100644 --- a/more_math/deprecated/AudioMathNode.py +++ b/more_math/deprecated/AudioMathNode.py @@ -34,7 +34,7 @@ class AudioMathNodeOLD(io.ComfyNode): io.String.Input(id="Audio", default="a*(1-w)+b*w", tooltip="Expression to apply on input audio waveforms"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched audio sample counts. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing samples as zero." ) diff --git a/more_math/deprecated/ClipMathNode.py b/more_math/deprecated/ClipMathNode.py index ed54200..b6e83bc 100644 --- a/more_math/deprecated/ClipMathNode.py +++ b/more_math/deprecated/ClipMathNode.py @@ -27,7 +27,7 @@ class CLIPMathNodeOLD(io.ComfyNode): io.String.Input(id="Model", default="a*(1-w)+b*w", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "passthrough", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." ) diff --git a/more_math/deprecated/ConditioningMathNode.py b/more_math/deprecated/ConditioningMathNode.py index b53814a..0d79bbd 100644 --- a/more_math/deprecated/ConditioningMathNode.py +++ b/more_math/deprecated/ConditioningMathNode.py @@ -23,6 +23,7 @@ class ConditioningMathNodeOLD(io.ComfyNode): return io.Schema( node_id="mrmth_ConditioningMathNode", display_name="Conditioning math", + is_deprecated=True, inputs=[ io.Conditioning.Input(id="a"), io.Conditioning.Input(id="b", optional=True, lazy=True), @@ -38,7 +39,7 @@ class ConditioningMathNodeOLD(io.ComfyNode): ), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched conditioning segment counts. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing as zero." ) diff --git a/more_math/deprecated/ImageMathNode.py b/more_math/deprecated/ImageMathNode.py index f72a20f..2c79570 100644 --- a/more_math/deprecated/ImageMathNode.py +++ b/more_math/deprecated/ImageMathNode.py @@ -34,7 +34,7 @@ class ImageMathNodeOLD(io.ComfyNode): io.String.Input(id="Image", default="a*(1-w)+b*w", tooltip="Expression to apply on input images"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched image batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/deprecated/LatentMathNode.py b/more_math/deprecated/LatentMathNode.py index e49faf3..e5c48b6 100644 --- a/more_math/deprecated/LatentMathNode.py +++ b/more_math/deprecated/LatentMathNode.py @@ -51,7 +51,7 @@ class LatentMathNodeOLD(io.ComfyNode): io.String.Input(id="Latent", default="a*(1-w)+b*w", tooltip="Expression to apply on input latents"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched latent batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/deprecated/MaskMathNode.py b/more_math/deprecated/MaskMathNode.py index e81abe4..1ba7955 100644 --- a/more_math/deprecated/MaskMathNode.py +++ b/more_math/deprecated/MaskMathNode.py @@ -36,7 +36,7 @@ class MaskMathNodeOLD(io.ComfyNode): io.String.Input(id="Mask", default="a*(1-w)+b*w", tooltip="Expression to apply on input masks"), io.Combo.Input( id="length_mismatch", - options=["error", "error", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched mask batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero." ) diff --git a/more_math/deprecated/ModelMathNode.py b/more_math/deprecated/ModelMathNode.py index 99e9cf2..728de35 100644 --- a/more_math/deprecated/ModelMathNode.py +++ b/more_math/deprecated/ModelMathNode.py @@ -28,7 +28,7 @@ class ModelMathNodeOLD(io.ComfyNode): io.String.Input(id="Model", default="a*(1-w)+b*w", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "passthrough", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." ) diff --git a/more_math/deprecated/VaeMathNode.py b/more_math/deprecated/VaeMathNode.py index eeb0b83..fc9632c 100644 --- a/more_math/deprecated/VaeMathNode.py +++ b/more_math/deprecated/VaeMathNode.py @@ -28,7 +28,7 @@ class VAEMathNodeOLD(io.ComfyNode): io.String.Input(id="Model", default="a*(1-w)+b*w", tooltip="Expression to apply on weights"), io.Combo.Input( id="length_mismatch", - options=["error", "passthrough", "pad"], + options=["tile", "error", "pad"], default="error", tooltip="How to handle mismatched layer counts. For models, this usually defaults to broadcast (zero for missing layers)." )