mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2025-12-14 16:34:36 +08:00
Mvly/node update (#10042)
* updated V2V node to allow for control image input exposing steps in v2v fixing guidance_scale as input parameter TODO: allow for motion_intensity as input param. * refactor: comment out unsupported resolution and adjust default values in video nodes * set control_after_generate * adding new defaults * fixes * changed control_after_generate back to True * changed control_after_generate back to False --------- Co-authored-by: thorsten <thorsten@tripod-digital.co.nz>
This commit is contained in:
parent
6e59934089
commit
72c2071972
@ -335,7 +335,7 @@ def parse_width_height_from_res(resolution: str):
|
|||||||
"1:1 (1152 x 1152)": {"width": 1152, "height": 1152},
|
"1:1 (1152 x 1152)": {"width": 1152, "height": 1152},
|
||||||
"4:3 (1536 x 1152)": {"width": 1536, "height": 1152},
|
"4:3 (1536 x 1152)": {"width": 1536, "height": 1152},
|
||||||
"3:4 (1152 x 1536)": {"width": 1152, "height": 1536},
|
"3:4 (1152 x 1536)": {"width": 1152, "height": 1536},
|
||||||
"21:9 (2560 x 1080)": {"width": 2560, "height": 1080},
|
# "21:9 (2560 x 1080)": {"width": 2560, "height": 1080},
|
||||||
}
|
}
|
||||||
return res_map.get(resolution, {"width": 1920, "height": 1080})
|
return res_map.get(resolution, {"width": 1920, "height": 1080})
|
||||||
|
|
||||||
@ -403,14 +403,14 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
|
|||||||
"1:1 (1152 x 1152)",
|
"1:1 (1152 x 1152)",
|
||||||
"4:3 (1536 x 1152)",
|
"4:3 (1536 x 1152)",
|
||||||
"3:4 (1152 x 1536)",
|
"3:4 (1152 x 1536)",
|
||||||
"21:9 (2560 x 1080)",
|
# "21:9 (2560 x 1080)",
|
||||||
],
|
],
|
||||||
default="16:9 (1920 x 1080)",
|
default="16:9 (1920 x 1080)",
|
||||||
tooltip="Resolution of the output video",
|
tooltip="Resolution of the output video",
|
||||||
),
|
),
|
||||||
comfy_io.Float.Input(
|
comfy_io.Float.Input(
|
||||||
"prompt_adherence",
|
"prompt_adherence",
|
||||||
default=10.0,
|
default=4.5,
|
||||||
min=1.0,
|
min=1.0,
|
||||||
max=20.0,
|
max=20.0,
|
||||||
step=1.0,
|
step=1.0,
|
||||||
@ -424,10 +424,11 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
|
|||||||
step=1,
|
step=1,
|
||||||
display_mode=comfy_io.NumberDisplay.number,
|
display_mode=comfy_io.NumberDisplay.number,
|
||||||
tooltip="Random seed value",
|
tooltip="Random seed value",
|
||||||
|
control_after_generate=True,
|
||||||
),
|
),
|
||||||
comfy_io.Int.Input(
|
comfy_io.Int.Input(
|
||||||
"steps",
|
"steps",
|
||||||
default=100,
|
default=33,
|
||||||
min=1,
|
min=1,
|
||||||
max=100,
|
max=100,
|
||||||
step=1,
|
step=1,
|
||||||
@ -468,7 +469,6 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
|
|||||||
steps=steps,
|
steps=steps,
|
||||||
seed=seed,
|
seed=seed,
|
||||||
guidance_scale=prompt_adherence,
|
guidance_scale=prompt_adherence,
|
||||||
num_frames=128,
|
|
||||||
width=width_height["width"],
|
width=width_height["width"],
|
||||||
height=width_height["height"],
|
height=width_height["height"],
|
||||||
use_negative_prompts=True,
|
use_negative_prompts=True,
|
||||||
@ -563,6 +563,15 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
|
|||||||
tooltip="Only used if control_type is 'Motion Transfer'",
|
tooltip="Only used if control_type is 'Motion Transfer'",
|
||||||
optional=True,
|
optional=True,
|
||||||
),
|
),
|
||||||
|
comfy_io.Int.Input(
|
||||||
|
"steps",
|
||||||
|
default=33,
|
||||||
|
min=1,
|
||||||
|
max=100,
|
||||||
|
step=1,
|
||||||
|
display_mode=comfy_io.NumberDisplay.number,
|
||||||
|
tooltip="Number of inference steps",
|
||||||
|
),
|
||||||
],
|
],
|
||||||
outputs=[comfy_io.Video.Output()],
|
outputs=[comfy_io.Video.Output()],
|
||||||
hidden=[
|
hidden=[
|
||||||
@ -582,6 +591,8 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
|
|||||||
video: Optional[VideoInput] = None,
|
video: Optional[VideoInput] = None,
|
||||||
control_type: str = "Motion Transfer",
|
control_type: str = "Motion Transfer",
|
||||||
motion_intensity: Optional[int] = 100,
|
motion_intensity: Optional[int] = 100,
|
||||||
|
steps=33,
|
||||||
|
prompt_adherence=4.5,
|
||||||
) -> comfy_io.NodeOutput:
|
) -> comfy_io.NodeOutput:
|
||||||
auth = {
|
auth = {
|
||||||
"auth_token": cls.hidden.auth_token_comfy_org,
|
"auth_token": cls.hidden.auth_token_comfy_org,
|
||||||
@ -602,6 +613,8 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
|
|||||||
negative_prompt=negative_prompt,
|
negative_prompt=negative_prompt,
|
||||||
seed=seed,
|
seed=seed,
|
||||||
control_params=control_params,
|
control_params=control_params,
|
||||||
|
steps=steps,
|
||||||
|
guidance_scale=prompt_adherence,
|
||||||
)
|
)
|
||||||
|
|
||||||
control = parse_control_parameter(control_type)
|
control = parse_control_parameter(control_type)
|
||||||
@ -675,7 +688,7 @@ class MoonvalleyTxt2VideoNode(comfy_io.ComfyNode):
|
|||||||
),
|
),
|
||||||
comfy_io.Float.Input(
|
comfy_io.Float.Input(
|
||||||
"prompt_adherence",
|
"prompt_adherence",
|
||||||
default=10.0,
|
default=4.0,
|
||||||
min=1.0,
|
min=1.0,
|
||||||
max=20.0,
|
max=20.0,
|
||||||
step=1.0,
|
step=1.0,
|
||||||
@ -688,11 +701,12 @@ class MoonvalleyTxt2VideoNode(comfy_io.ComfyNode):
|
|||||||
max=4294967295,
|
max=4294967295,
|
||||||
step=1,
|
step=1,
|
||||||
display_mode=comfy_io.NumberDisplay.number,
|
display_mode=comfy_io.NumberDisplay.number,
|
||||||
|
control_after_generate=True,
|
||||||
tooltip="Random seed value",
|
tooltip="Random seed value",
|
||||||
),
|
),
|
||||||
comfy_io.Int.Input(
|
comfy_io.Int.Input(
|
||||||
"steps",
|
"steps",
|
||||||
default=100,
|
default=33,
|
||||||
min=1,
|
min=1,
|
||||||
max=100,
|
max=100,
|
||||||
step=1,
|
step=1,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user