Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Mvly/node update (#10042)

Jedrzej Kosinski72c2071972d3
diff --git a/comfy_api_nodes/nodes_moonvalley.py b/comfy_api_nodes/nodes_moonvalley.py
index 55471a69d..4a56d31f8 100644
--- a/comfy_api_nodes/nodes_moonvalley.py
+++ b/comfy_api_nodes/nodes_moonvalley.py
@@ -335,7 +335,7 @@ def parse_width_height_from_res(resolution: str):
"1:1 (1152 x 1152)": {"width": 1152, "height": 1152},
"4:3 (1536 x 1152)": {"width": 1536, "height": 1152},
"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})
@@ -388,11 +388,11 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
"negative_prompt",
multiline=True,
default="<synthetic> <scene cut> gopro, bright, contrast, static, overexposed, vignette, "
- "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
- "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
- "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
- "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
- "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
+ "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
+ "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
+ "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
+ "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
+ "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
tooltip="Negative prompt text",
),
comfy_io.Combo.Input(
@@ -403,14 +403,14 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
"1:1 (1152 x 1152)",
"4:3 (1536 x 1152)",
"3:4 (1152 x 1536)",
- "21:9 (2560 x 1080)",
+ # "21:9 (2560 x 1080)",
],
default="16:9 (1920 x 1080)",
tooltip="Resolution of the output video",
),
comfy_io.Float.Input(
"prompt_adherence",
- default=10.0,
+ default=4.5,
min=1.0,
max=20.0,
step=1.0,
@@ -424,10 +424,11 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
step=1,
display_mode=comfy_io.NumberDisplay.number,
tooltip="Random seed value",
+ control_after_generate=True,
),
comfy_io.Int.Input(
"steps",
- default=100,
+ default=33,
min=1,
max=100,
step=1,
@@ -468,7 +469,6 @@ class MoonvalleyImg2VideoNode(comfy_io.ComfyNode):
steps=steps,
seed=seed,
guidance_scale=prompt_adherence,
- num_frames=128,
width=width_height["width"],
height=width_height["height"],
use_negative_prompts=True,
@@ -526,11 +526,11 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
"negative_prompt",
multiline=True,
default="<synthetic> <scene cut> gopro, bright, contrast, static, overexposed, vignette, "
- "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
- "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
- "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
- "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
- "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
+ "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
+ "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
+ "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
+ "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
+ "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
tooltip="Negative prompt text",
),
comfy_io.Int.Input(
@@ -546,7 +546,7 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
comfy_io.Video.Input(
"video",
tooltip="The reference video used to generate the output video. Must be at least 5 seconds long. "
- "Videos longer than 5s will be automatically trimmed. Only MP4 format supported.",
+ "Videos longer than 5s will be automatically trimmed. Only MP4 format supported.",
),
comfy_io.Combo.Input(
"control_type",
@@ -563,6 +563,15 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
tooltip="Only used if control_type is 'Motion Transfer'",
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()],
hidden=[
@@ -582,6 +591,8 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
video: Optional[VideoInput] = None,
control_type: str = "Motion Transfer",
motion_intensity: Optional[int] = 100,
+ steps=33,
+ prompt_adherence=4.5,
) -> comfy_io.NodeOutput:
auth = {
"auth_token": cls.hidden.auth_token_comfy_org,
@@ -602,6 +613,8 @@ class MoonvalleyVideo2VideoNode(comfy_io.ComfyNode):
negative_prompt=negative_prompt,
seed=seed,
control_params=control_params,
+ steps=steps,
+ guidance_scale=prompt_adherence,
)
control = parse_control_parameter(control_type)
@@ -653,11 +666,11 @@ class MoonvalleyTxt2VideoNode(comfy_io.ComfyNode):
"negative_prompt",
multiline=True,
default="<synthetic> <scene cut> gopro, bright, contrast, static, overexposed, vignette, "
- "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
- "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
- "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
- "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
- "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
+ "artifacts, still, noise, texture, scanlines, videogame, 360 camera, VR, transition, "
+ "flare, saturation, distorted, warped, wide angle, saturated, vibrant, glowing, "
+ "cross dissolve, cheesy, ugly hands, mutated hands, mutant, disfigured, extra fingers, "
+ "blown out, horrible, blurry, worst quality, bad, dissolve, melt, fade in, fade out, "
+ "wobbly, weird, low quality, plastic, stock footage, video camera, boring",
tooltip="Negative prompt text",
),
comfy_io.Combo.Input(
@@ -675,7 +688,7 @@ class MoonvalleyTxt2VideoNode(comfy_io.ComfyNode):
),
comfy_io.Float.Input(
"prompt_adherence",
- default=10.0,
+ default=4.0,
min=1.0,
max=20.0,
step=1.0,
@@ -688,11 +701,12 @@ class MoonvalleyTxt2VideoNode(comfy_io.ComfyNode):
max=4294967295,
step=1,
display_mode=comfy_io.NumberDisplay.number,
+ control_after_generate=True,
tooltip="Random seed value",
),
comfy_io.Int.Input(
"steps",
- default=100,
+ default=33,
min=1,
max=100,
step=1,