Release V3.8X2 package 3.8.3
This commit is contained in:
+18
-5
@@ -13,6 +13,7 @@ from ..constants import (
|
||||
DIAGNOSTICS_FULL,
|
||||
DIAGNOSTICS_OFF,
|
||||
FPS,
|
||||
normalize_continuity_mode,
|
||||
normalize_diagnostics_mode,
|
||||
)
|
||||
from ..driving_audio import prepare_driving_audio_source
|
||||
@@ -26,6 +27,7 @@ from ..reference_video import (
|
||||
REFERENCE_VIDEO_SIZE_EFFICIENT,
|
||||
REFERENCE_VIDEO_SIZE_OPTIONS,
|
||||
)
|
||||
from ..reference import H3ContinuumReferenceImages, REFERENCE_IMAGES_TYPE
|
||||
from ..reference_audio import (
|
||||
H3ContinuumReferenceAudios,
|
||||
REFERENCE_AUDIOS_TYPE,
|
||||
@@ -284,7 +286,7 @@ class H3ContinuumSamplerV35(H3ContinuumSamplerV34):
|
||||
optional["reference_audio_1"] = (
|
||||
"AUDIO",
|
||||
{
|
||||
"display_name": "Reference Audio (Optional)",
|
||||
"display_name": "Reference Audio (Legacy)",
|
||||
"tooltip": (
|
||||
"Optional standalone audio reference for H3 conditioning. "
|
||||
"It is not the audio track of Video Guide Frames. Unlike Driving "
|
||||
@@ -295,7 +297,7 @@ class H3ContinuumSamplerV35(H3ContinuumSamplerV34):
|
||||
optional["reference_audio_vae"] = (
|
||||
"VAE",
|
||||
{
|
||||
"display_name": "Reference Audio VAE (Optional)",
|
||||
"display_name": "Reference Audio VAE (Legacy)",
|
||||
"tooltip": (
|
||||
"Required only when Reference Audio is connected. It encodes the "
|
||||
"reference for H3 conditioning; generated audio remains the output."
|
||||
@@ -415,7 +417,9 @@ class H3ContinuumSamplerV36(H3ContinuumSamplerV35):
|
||||
audio_continuity = kwargs.get("audio_continuity")
|
||||
if audio_continuity is None:
|
||||
audio_continuity = True
|
||||
continuity = kwargs.get("continuity", _V36_BALANCED_CONTINUITY)
|
||||
continuity = normalize_continuity_mode(
|
||||
kwargs.get("continuity", _V36_BALANCED_CONTINUITY)
|
||||
)
|
||||
transport, fallback_reason = _resolve_v36_continuation_transport(
|
||||
continuation_backend=continuation_backend,
|
||||
audio_continuity=audio_continuity,
|
||||
@@ -684,13 +688,18 @@ class H3ContinuumSamplerV38(H3ContinuumSamplerV37):
|
||||
optional["audio_references"] = (
|
||||
REFERENCE_AUDIOS_TYPE,
|
||||
{
|
||||
"display_name": "Audio References (Optional)",
|
||||
"display_name": "Reference Audios (Optional)",
|
||||
"tooltip": (
|
||||
"Optional ordered bundle from H3 Continuum Reference Audios. "
|
||||
"Do not connect it together with the legacy single Reference Audio input."
|
||||
),
|
||||
},
|
||||
)
|
||||
optional["image_references"] = (
|
||||
REFERENCE_IMAGES_TYPE,
|
||||
{"display_name": "Reference Images (Optional)",
|
||||
"tooltip": "Optional Reference Images 4–9 from H3 Continuum Reference Images. Existing slots 1–3 remain first."},
|
||||
)
|
||||
schema["optional"] = optional
|
||||
return schema
|
||||
|
||||
@@ -843,12 +852,14 @@ class H3ContinuumSamplerV38MemoryPolicyExperimental(H3ContinuumSamplerV38):
|
||||
REFERENCE_VIDEO_SIZE_EFFICIENT,
|
||||
)
|
||||
),
|
||||
has_reference_images=any(
|
||||
has_reference_images=kwargs.get("image_references") is not None or any(
|
||||
kwargs.get(name) is not None
|
||||
for name in (
|
||||
"reference_image_1",
|
||||
"reference_image_2",
|
||||
"reference_image_3",
|
||||
"reference_image_4",
|
||||
"reference_image_5",
|
||||
)
|
||||
),
|
||||
has_video_guide=kwargs.get("reference_video_1") is not None,
|
||||
@@ -1054,6 +1065,7 @@ NODE_CLASS_MAPPINGS = {
|
||||
"H3ContinuumSamplerV37": H3ContinuumSamplerV37,
|
||||
"H3ContinuumSamplerV38": H3ContinuumSamplerV38,
|
||||
"H3ContinuumReferenceAudios": H3ContinuumReferenceAudios,
|
||||
"H3ContinuumReferenceImages": H3ContinuumReferenceImages,
|
||||
"H3ContinuumMemoryActionPolicyExperimental": (
|
||||
H3ContinuumMemoryActionPolicyExperimental
|
||||
),
|
||||
@@ -1072,6 +1084,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"H3ContinuumSamplerV37": "H3 Continuum Sampler V3.7",
|
||||
"H3ContinuumSamplerV38": "H3 Continuum Sampler V3.8",
|
||||
"H3ContinuumReferenceAudios": "H3 Continuum Reference Audios",
|
||||
"H3ContinuumReferenceImages": "H3 Continuum Reference Images",
|
||||
"H3ContinuumMemoryActionPolicyExperimental": (
|
||||
"H3 Continuum Memory Action Policy (Experimental)"
|
||||
),
|
||||
|
||||
+6
-1
@@ -12,6 +12,8 @@ from dataclasses import dataclass
|
||||
from types import MappingProxyType
|
||||
from typing import Any
|
||||
|
||||
from ..reference import resolve_reference_image_inputs
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RuntimeRequest:
|
||||
@@ -137,10 +139,13 @@ def execute_v38_runtime_request(
|
||||
output_width=request.resolution.width,
|
||||
output_height=request.resolution.height,
|
||||
chunk_seconds=float(inputs["chunk_seconds"]),
|
||||
reference_images=(
|
||||
reference_images=resolve_reference_image_inputs(
|
||||
inputs.get("reference_image_1"),
|
||||
inputs.get("reference_image_2"),
|
||||
inputs.get("reference_image_3"),
|
||||
inputs.get("reference_image_4"),
|
||||
inputs.get("reference_image_5"),
|
||||
inputs.get("image_references"),
|
||||
),
|
||||
reference_size=str(inputs.get("reference_size", "Match Output")),
|
||||
video_guide=inputs.get("reference_video_1"),
|
||||
|
||||
+8
-2
@@ -1024,6 +1024,9 @@ class H3ContinuumSamplerProduction(H3ContinuumSamplerV3):
|
||||
take_action="Automatic",
|
||||
_diagnostic_continuation_policy=None,
|
||||
audio_references=None,
|
||||
reference_image_4=None,
|
||||
reference_image_5=None,
|
||||
image_references=None,
|
||||
):
|
||||
runtime_started_at = time.perf_counter()
|
||||
from ..reference import prepare_reference_assets
|
||||
@@ -1050,8 +1053,11 @@ class H3ContinuumSamplerProduction(H3ContinuumSamplerV3):
|
||||
output_width=int(width),
|
||||
output_height=int(height),
|
||||
size_mode=reference_size,
|
||||
reference_image_3=reference_image_3,
|
||||
)
|
||||
reference_image_3=reference_image_3,
|
||||
reference_image_4=reference_image_4,
|
||||
reference_image_5=reference_image_5,
|
||||
image_references=image_references,
|
||||
)
|
||||
reference_audio_source, resolved_reference_audio_vae = resolve_reference_audio_input(
|
||||
reference_audio_1,
|
||||
reference_audio_vae,
|
||||
|
||||
Reference in New Issue
Block a user