Address code review feedback: fix formatting and clarify messages
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
This commit is contained in:
1 parent
d3a13425d9
commit
04900ebf04
2 files changed
+4
-5
No files matched your search
@@ -66,7 +66,8 @@ def main():
|
|||||||
if hasattr(first_item, "final_output_type"):
|
if hasattr(first_item, "final_output_type"):
|
||||||
if first_item.final_output_type != "image":
|
if first_item.final_output_type != "image":
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Unexpected output type '{first_item.final_output_type}', expected 'image' for video generation."
|
f"Unexpected output type '{first_item.final_output_type}', "
|
||||||
|
f"expected 'image' for video frames output."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Pipeline mode: extract from nested request_output
|
# Pipeline mode: extract from nested request_output
|
||||||
|
|||||||
@@ -55,8 +55,7 @@ def get_ltx2_pre_process_func(
|
|||||||
|
|
||||||
|
|
||||||
class LTX2Pipeline(nn.Module):
|
class LTX2Pipeline(nn.Module):
|
||||||
"""
|
"""Wrapper for Lightricks LTX-2 text-to-video pipeline.
|
||||||
Wrapper for Lightricks LTX-2 text-to-video pipeline.
|
|
||||||
|
|
||||||
This model uses the diffusers LTXVideoPipeline for efficient video generation.
|
This model uses the diffusers LTXVideoPipeline for efficient video generation.
|
||||||
Supports text-to-video and image-to-video generation.
|
Supports text-to-video and image-to-video generation.
|
||||||
@@ -105,8 +104,7 @@ class LTX2Pipeline(nn.Module):
|
|||||||
generator: Optional[torch.Generator] = None,
|
generator: Optional[torch.Generator] = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
) -> DiffusionOutput:
|
) -> DiffusionOutput:
|
||||||
"""
|
"""Generate video from text prompt.
|
||||||
Generate video from text prompt.
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
req: OmniDiffusionRequest containing generation parameters
|
req: OmniDiffusionRequest containing generation parameters
|
||||||
|
|||||||
Reference in new issue
Block a user