mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-06 11:47:03 +08:00
Proper ray-1-6 support as fix has been applied in backend (#80)
This commit is contained in:
parent
c740f50359
commit
3cf4671111
@ -234,7 +234,7 @@ class LumaImageGenerationRequest(BaseModel):
|
|||||||
class LumaGenerationRequest(BaseModel):
|
class LumaGenerationRequest(BaseModel):
|
||||||
prompt: str = Field(..., description='The prompt of the generation')
|
prompt: str = Field(..., description='The prompt of the generation')
|
||||||
model: LumaVideoModel = Field(LumaVideoModel.ray_2, description='The video model used for the generation')
|
model: LumaVideoModel = Field(LumaVideoModel.ray_2, description='The video model used for the generation')
|
||||||
duration: LumaVideoModelOutputDuration = Field(LumaVideoModelOutputDuration.dur_5s, description='The duration of the generation')
|
duration: Optional[LumaVideoModelOutputDuration] = Field(None, description='The duration of the generation')
|
||||||
aspect_ratio: Optional[LumaAspectRatio] = Field(None, description='The aspect ratio of the generation')
|
aspect_ratio: Optional[LumaAspectRatio] = Field(None, description='The aspect ratio of the generation')
|
||||||
resolution: Optional[LumaVideoOutputResolution] = Field(None, description='The resolution of the generation')
|
resolution: Optional[LumaVideoOutputResolution] = Field(None, description='The resolution of the generation')
|
||||||
loop: Optional[bool] = Field(None, description='Whether to loop the video')
|
loop: Optional[bool] = Field(None, description='Whether to loop the video')
|
||||||
|
|||||||
@ -484,6 +484,9 @@ class LumaTextToVideoGenerationNode(ComfyNodeABC):
|
|||||||
auth_token=None,
|
auth_token=None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
):
|
):
|
||||||
|
duration = duration if model != LumaVideoModel.ray_1_6 else None
|
||||||
|
resolution = resolution if model != LumaVideoModel.ray_1_6 else None
|
||||||
|
|
||||||
operation = SynchronousOperation(
|
operation = SynchronousOperation(
|
||||||
endpoint=ApiEndpoint(
|
endpoint=ApiEndpoint(
|
||||||
path="/proxy/luma/generations",
|
path="/proxy/luma/generations",
|
||||||
@ -610,6 +613,8 @@ class LumaImageToVideoGenerationNode(ComfyNodeABC):
|
|||||||
"At least one of first_image and last_image requires an input."
|
"At least one of first_image and last_image requires an input."
|
||||||
)
|
)
|
||||||
keyframes = self._convert_to_keyframes(first_image, last_image, auth_token)
|
keyframes = self._convert_to_keyframes(first_image, last_image, auth_token)
|
||||||
|
duration = duration if model != LumaVideoModel.ray_1_6 else None
|
||||||
|
resolution = resolution if model != LumaVideoModel.ray_1_6 else None
|
||||||
|
|
||||||
operation = SynchronousOperation(
|
operation = SynchronousOperation(
|
||||||
endpoint=ApiEndpoint(
|
endpoint=ApiEndpoint(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user