Clean V3.9 sampler dimensions and legacy inputs
This commit is contained in:
@@ -106,7 +106,19 @@ def _add_direct_refmod_input(node_class):
|
||||
def INPUT_TYPES(cls):
|
||||
schema = original_input_types()
|
||||
schema = {name: dict(value) for name, value in schema.items()}
|
||||
required = dict(schema.get("required", {}))
|
||||
# V3.8 exposes both its newer resolution preset controls and the
|
||||
# original aspect/size controls. The DUMAS V3.9 node is intentionally
|
||||
# a clean manual-dimension node: width and height are the one source of
|
||||
# truth and can be converted to linked inputs in ComfyUI.
|
||||
for name in ("aspect", "preset", "custom_mp", "size_source"):
|
||||
required.pop(name, None)
|
||||
schema["required"] = required
|
||||
optional = dict(schema.get("optional", {}))
|
||||
# The bundled audio reference socket supersedes the two legacy scalar
|
||||
# audio inputs; exposing both makes it unclear which route is active.
|
||||
for name in ("reference_audio_1", "reference_audio_vae"):
|
||||
optional.pop(name, None)
|
||||
optional["refmods"] = (
|
||||
"H3_REF_MODS",
|
||||
{
|
||||
@@ -145,6 +157,12 @@ def _add_direct_refmod_input(node_class):
|
||||
|
||||
def run(self, refmods=None, refmod_retention=1.0,
|
||||
refmod_max_total_tokens=0, **kwargs):
|
||||
# The clean DUMAS surface always uses the explicitly supplied width /
|
||||
# height pair. Keep the upstream runtime's legacy arguments internal.
|
||||
kwargs["size_source"] = "Manual"
|
||||
kwargs.pop("aspect", None)
|
||||
kwargs.pop("preset", None)
|
||||
kwargs.pop("custom_mp", None)
|
||||
if refmods:
|
||||
model = kwargs.get("model")
|
||||
if model is None:
|
||||
|
||||
Reference in New Issue
Block a user