Unwrap ComfyUI v3 node outputs for tiled upscale
This commit is contained in:
@@ -9,6 +9,7 @@ from .refine_scope import MODE_ALL, MODE_LOGICAL_CHUNK, MODE_PHYSICAL_GROUP
|
||||
from .refine_window import MODE_TIME_WINDOW
|
||||
from .second_pass import run_second_pass_groups
|
||||
from .targeted_second_pass import run_targeted_second_pass_groups
|
||||
from .tiled_latent_upscale_nodes import _native_node, _unwrap_single_output
|
||||
|
||||
|
||||
REFINE_TARGET_VIDEO_ONLY = "Video Only"
|
||||
@@ -164,8 +165,6 @@ class H3ContinuumSecondPassV35:
|
||||
):
|
||||
tiled_config = None
|
||||
if bool(_single_list_input("tiled_upscale", tiled_upscale)):
|
||||
from .tiled_latent_upscale_nodes import _native_node
|
||||
|
||||
required_native = {
|
||||
name: _native_node(name)
|
||||
for name in (
|
||||
@@ -185,8 +184,11 @@ class H3ContinuumSecondPassV35:
|
||||
tiled_config = {
|
||||
"native": required_native["MMH3UltimateUpscale"],
|
||||
"random_noise": required_native["RandomNoise"],
|
||||
"sampler": required_native["KSamplerSelect"]().get_sampler(
|
||||
str(_single_list_input("upscale_sampler", upscale_sampler))
|
||||
"sampler": _unwrap_single_output(
|
||||
required_native["KSamplerSelect"]().get_sampler(
|
||||
str(_single_list_input("upscale_sampler", upscale_sampler))
|
||||
),
|
||||
"KSamplerSelect",
|
||||
),
|
||||
"scheduler": required_native["BasicScheduler"],
|
||||
"scheduler_name": str(_single_list_input("upscale_scheduler", upscale_scheduler)),
|
||||
|
||||
Reference in New Issue
Block a user