tile,error,pad everywhere

This commit is contained in:
mcDandy
2026-01-28 16:02:14 +01:00
parent 380021fdf1
commit 5a801ecbd2
19 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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)."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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)."
)
-1
View File
@@ -1,4 +1,3 @@
from ast import If
import torch
import math
import inspect
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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)."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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)."
)
+2 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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."
)
+1 -1
View File
@@ -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)."
)
+1 -1
View File
@@ -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)."
)