Compare commits

..

2 Commits

Author SHA1 Message Date
Alexander Piskun
efcb2334c3
Merge 7884677027 into 7bbf1e8169 2026-05-09 11:02:51 +00:00
bigcat88
7884677027
[Partner Nodes] new ByteDanceSeedreamNodeV2 node with DynamicCombo and autogrow
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled
Signed-off-by: bigcat88 <bigcat88@icloud.com>
2026-05-09 14:00:18 +03:00

View File

@ -706,6 +706,12 @@ def _seedream_model_inputs(*, max_ref_images: int, presets: list):
tooltip=f"Optional reference image(s) for image-to-image or multi-reference generation. "
f"Up to {max_ref_images} images.",
),
IO.Boolean.Input(
"fail_on_partial",
default=False,
tooltip="If enabled, abort execution if any requested images are missing or return an error.",
advanced=True,
),
]
@ -758,12 +764,6 @@ class ByteDanceSeedreamNodeV2(IO.ComfyNode):
tooltip='Whether to add an "AI generated" watermark to the image.',
advanced=True,
),
IO.Boolean.Input(
"fail_on_partial",
default=False,
tooltip="If enabled, abort execution if any requested images are missing or return an error.",
advanced=True,
),
],
outputs=[
IO.Image.Output(),
@ -797,7 +797,6 @@ class ByteDanceSeedreamNodeV2(IO.ComfyNode):
model: dict,
seed: int = 0,
watermark: bool = False,
fail_on_partial: bool = True,
) -> IO.NodeOutput:
validate_string(prompt, strip_whitespace=True, min_length=1)
model_id = SEEDREAM_MODELS[model["model"]]
@ -809,6 +808,7 @@ class ByteDanceSeedreamNodeV2(IO.ComfyNode):
max_images = model.get("max_images", 1)
sequential_image_generation = "disabled" if max_images == 1 else "auto"
images_dict = model.get("images") or {}
fail_on_partial = model.get("fail_on_partial", False)
w = h = None
for label, tw, th in presets: