mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-08 20:42:32 +08:00
extend possible duration range for Kling O1 StartEndFrame node
This commit is contained in:
parent
0899012ad6
commit
5707b85f3f
@ -858,7 +858,7 @@ class OmniProFirstLastFrameNode(IO.ComfyNode):
|
|||||||
tooltip="A text prompt describing the video content. "
|
tooltip="A text prompt describing the video content. "
|
||||||
"This can include both positive and negative descriptions.",
|
"This can include both positive and negative descriptions.",
|
||||||
),
|
),
|
||||||
IO.Combo.Input("duration", options=["5", "10"]),
|
IO.Int.Input("duration", default=5, min=3, max=10, display_mode=IO.NumberDisplay.slider),
|
||||||
IO.Image.Input("first_frame"),
|
IO.Image.Input("first_frame"),
|
||||||
IO.Image.Input(
|
IO.Image.Input(
|
||||||
"end_frame",
|
"end_frame",
|
||||||
@ -897,6 +897,10 @@ class OmniProFirstLastFrameNode(IO.ComfyNode):
|
|||||||
validate_string(prompt, min_length=1, max_length=2500)
|
validate_string(prompt, min_length=1, max_length=2500)
|
||||||
if end_frame is not None and reference_images is not None:
|
if end_frame is not None and reference_images is not None:
|
||||||
raise ValueError("The 'end_frame' input cannot be used simultaneously with 'reference_images'.")
|
raise ValueError("The 'end_frame' input cannot be used simultaneously with 'reference_images'.")
|
||||||
|
if duration not in (5, 10) and end_frame is None and reference_images is None:
|
||||||
|
raise ValueError(
|
||||||
|
"Duration is only supported for 5 or 10 seconds if there is no end frame or reference images."
|
||||||
|
)
|
||||||
validate_image_dimensions(first_frame, min_width=300, min_height=300)
|
validate_image_dimensions(first_frame, min_width=300, min_height=300)
|
||||||
validate_image_aspect_ratio(first_frame, (1, 2.5), (2.5, 1))
|
validate_image_aspect_ratio(first_frame, (1, 2.5), (2.5, 1))
|
||||||
image_list: list[OmniParamImage] = [
|
image_list: list[OmniParamImage] = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user