Honor connected Second Pass sigma schedules
tests / test (push) Canceled after 0s
tests / windows-storage (push) Canceled after 0s

This commit is contained in:
2026-10-19 16:25:37 +00:00
parent ed62285816
commit 881dcbcfba
5 changed files with 138 additions and 4 deletions
+26 -4
View File
@@ -50,6 +50,14 @@ def _single_list_input(name: str, value: Any) -> Any:
return value[0]
def _optional_single_list_input(name: str, value: Any) -> Any:
"""Unwrap an optional INPUT_IS_LIST value without losing an absent socket."""
if value is None:
return None
return _single_list_input(name, value)
def _sampler_options():
try:
import comfy.samplers
@@ -76,7 +84,10 @@ class H3ContinuumSecondPassV35:
"Connect the optional Continuum refine context to preserve the physical group's "
"First/Last/Reference conditioning. "
"SIGMAS controls the low-denoise refine schedule; audio output is preserved "
"bit-exact from the first pass."
"bit-exact from the first pass. In tiled-upscale mode, connected "
"upscale-specific sockets take priority; the main SIGMAS socket is the "
"fallback external schedule. The other optional tiled sockets fall back "
"to their node widgets when they are not connected."
)
@classmethod
@@ -206,9 +217,20 @@ class H3ContinuumSecondPassV35:
None if upscale_negative is None
else _single_list_input("upscale_negative", upscale_negative)
),
"sigmas": (
None if upscale_sigmas is None
else _single_list_input("upscale_sigmas", upscale_sigmas)
# A dedicated tiled schedule wins. The main SIGMAS socket is
# the backwards-compatible external fallback used by existing
# DUMAS workflows.
"sigmas": _optional_single_list_input(
"upscale_sigmas", upscale_sigmas
)
if upscale_sigmas is not None
else _optional_single_list_input("sigmas", sigmas),
"sigma_source": (
"upscale_sigmas_socket"
if upscale_sigmas is not None
else "sigmas_socket"
if sigmas is not None
else "node_steps_fallback"
),
}
return run_second_pass_groups(