Skip to content

Commit c1b63a7

Browse files
authored
fix(Moonvalley-API-Nodes): adjust "steps" parameter to not raise exception (Comfy-Org#12370)
1 parent 349a636 commit c1b63a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

comfy_api_nodes/nodes_moonvalley.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def define_schema(cls) -> IO.Schema:
219219
),
220220
IO.Int.Input(
221221
"steps",
222-
default=33,
223-
min=1,
222+
default=80,
223+
min=75, # steps should be greater or equal to cooldown_steps(75) + warmup_steps(0)
224224
max=100,
225225
step=1,
226226
tooltip="Number of denoising steps",
@@ -340,8 +340,8 @@ def define_schema(cls) -> IO.Schema:
340340
),
341341
IO.Int.Input(
342342
"steps",
343-
default=33,
344-
min=1,
343+
default=60,
344+
min=60, # steps should be greater or equal to cooldown_steps(36) + warmup_steps(24)
345345
max=100,
346346
step=1,
347347
display_mode=IO.NumberDisplay.number,
@@ -370,7 +370,7 @@ async def execute(
370370
video: Input.Video | None = None,
371371
control_type: str = "Motion Transfer",
372372
motion_intensity: int | None = 100,
373-
steps=33,
373+
steps=60,
374374
prompt_adherence=4.5,
375375
) -> IO.NodeOutput:
376376
validated_video = validate_video_to_video_input(video)
@@ -465,8 +465,8 @@ def define_schema(cls) -> IO.Schema:
465465
),
466466
IO.Int.Input(
467467
"steps",
468-
default=33,
469-
min=1,
468+
default=80,
469+
min=75, # steps should be greater or equal to cooldown_steps(75) + warmup_steps(0)
470470
max=100,
471471
step=1,
472472
tooltip="Inference steps",

0 commit comments

Comments
 (0)