| 1 | """ |
| 2 | LTX-2 Pipelines: High-level video generation pipelines and utilities. |
| 3 | This package provides ready-to-use pipelines for video generation: |
| 4 | - TI2VidOneStagePipeline: Text/image-to-video in a single stage |
| 5 | - CausalTI2VidPipeline: Causal text/image-to-video rollout |
| 6 | - TI2VidTwoStagesPipeline: Two-stage generation with upsampling |
| 7 | - DistilledPipeline: Fast distilled two-stage generation |
| 8 | - ICLoraPipeline: Image/video conditioning with distilled LoRA |
| 9 | - KeyframeInterpolationPipeline: Keyframe-based video interpolation |
| 10 | - RetakePipeline: Regenerate a time region (retake) of an existing video |
| 11 | - ModelLedger: Central coordinator for loading and building models |
| 12 | For more detailed components and utilities, import from specific submodules |
| 13 | like `ltx_pipelines.utils.media_io` or `ltx_pipelines.utils.constants`. |
| 14 | """ |
| 15 | |
| 16 | from typing import TYPE_CHECKING |
| 17 | |
| 18 | from ltx_pipelines.a2vid_two_stage import A2VidPipelineTwoStage |
| 19 | from ltx_pipelines.distilled import DistilledPipeline |
| 20 | from ltx_pipelines.ic_lora import ICLoraPipeline |
| 21 | from ltx_pipelines.keyframe_interpolation import KeyframeInterpolationPipeline |
| 22 | from ltx_pipelines.retake import RetakePipeline |
| 23 | from ltx_pipelines.ti2vid_one_stage import TI2VidOneStagePipeline |
| 24 | from ltx_pipelines.ti2vid_two_stages import TI2VidTwoStagesPipeline |
| 25 | |
| 26 | if TYPE_CHECKING: |
| 27 | from ltx_pipelines.causal_ti2vid import CausalTI2VidPipeline |
| 28 | |
| 29 | |
| 30 | def __getattr__(name: str): |
| 31 | """Load the optional causal pipeline only when it is requested.""" |
| 32 | if name == "CausalTI2VidPipeline": |
| 33 | from ltx_pipelines.causal_ti2vid import CausalTI2VidPipeline |
| 34 | |
| 35 | return CausalTI2VidPipeline |
| 36 | raise AttributeError(f"module {__name__!r} has no attribute {name!r}") |
| 37 | |
| 38 | __all__ = [ |
| 39 | "A2VidPipelineTwoStage", |
| 40 | "CausalTI2VidPipeline", |
| 41 | "DistilledPipeline", |
| 42 | "ICLoraPipeline", |
| 43 | "KeyframeInterpolationPipeline", |
| 44 | "RetakePipeline", |
| 45 | "TI2VidOneStagePipeline", |
| 46 | "TI2VidTwoStagesPipeline", |
| 47 | ] |
| 48 |