Honor connected Second Pass sigma schedules
This commit is contained in:
@@ -610,6 +610,11 @@ def run_second_pass_groups(
|
||||
f"sampling_passes=1, tiled_upscale={tiled_upscale_config is not None}, "
|
||||
"temporary_audio_discarded=true"
|
||||
)
|
||||
if tiled_upscale_config is not None:
|
||||
group_report_lines.append(
|
||||
"tiled sigma source="
|
||||
f"{tiled_upscale_config.get('sigma_source', 'node_steps_fallback')}"
|
||||
)
|
||||
if adaptation_stats is not None:
|
||||
group_report_lines.append(
|
||||
"group "
|
||||
|
||||
+26
-4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user