[Kling] Split Camera Control config to its own node (#81)

This commit is contained in:
Christian Byrne 2025-04-30 17:50:53 -07:00 committed by Robin Huang
parent 3952c5cca6
commit 8b3cd359d5

View File

@ -432,6 +432,13 @@ class KlingTextToVideoNode(KlingNodeBase):
"negative_prompt": model_field_to_node_input( "negative_prompt": model_field_to_node_input(
IO.STRING, KlingText2VideoRequest, "negative_prompt", multiline=True IO.STRING, KlingText2VideoRequest, "negative_prompt", multiline=True
), ),
"model_name": model_field_to_node_input(
IO.COMBO,
KlingText2VideoRequest,
"model_name",
enum_type=ModelName,
default="kling-v2-master",
),
"cfg_scale": model_field_to_node_input( "cfg_scale": model_field_to_node_input(
IO.FLOAT, IO.FLOAT,
KlingText2VideoRequest, KlingText2VideoRequest,
@ -766,6 +773,16 @@ class KlingCameraControlI2VNode(KlingImage2VideoNode):
"negative_prompt", "negative_prompt",
multiline=True, multiline=True,
), ),
"model_name": model_field_to_node_input(
IO.COMBO,
KlingImage2VideoRequest,
"model_name",
enum_type=ModelName,
default="kling-v2-master",
),
"start_frame": model_field_to_node_input(
IO.IMAGE, KlingImage2VideoRequest, "image"
),
"cfg_scale": model_field_to_node_input( "cfg_scale": model_field_to_node_input(
IO.FLOAT, IO.FLOAT,
KlingImage2VideoRequest, KlingImage2VideoRequest,
@ -801,6 +818,8 @@ class KlingCameraControlI2VNode(KlingImage2VideoNode):
start_frame: torch.Tensor, start_frame: torch.Tensor,
prompt: str, prompt: str,
negative_prompt: str, negative_prompt: str,
model_name: str,
start_frame: torch.Tensor,
cfg_scale: float, cfg_scale: float,
aspect_ratio: str, aspect_ratio: str,
camera_control: KlingCameraControl, camera_control: KlingCameraControl,