Conversation
…nector embeddings
… suggested params for the LTX-2.3 model
…eline to LTX2HDRPipeline
…preserved positional arg ordering
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
|
||
| # Adapted from ltx_pipelines.utils.media_io.save_exr_tensor | ||
| # https://github.com/Lightricks/LTX-2/blob/41d924371612b692c0fd1e4d9d94c3dfb3c02cb3/packages/ltx-pipelines/src/ltx_pipelines/utils/media_io.py#L609 | ||
| def save_exr_tensor( |
There was a problem hiding this comment.
I think with this PR, encode_hdr_tensor_to_mp4 is enough, no?
can we remove all the other functions here?
| num_frames: int = 121, | ||
| frame_rate: float = 24.0, | ||
| num_inference_steps: int = 40, | ||
| num_inference_steps: int = 30, |
There was a problem hiding this comment.
did they change the default since the release? 🤯
There was a problem hiding this comment.
I ended up changing the LTX2ConditionPipeline.__call__ defaults to the LTX-2.3 defaults (since the implementation now follows the newest behavior rather than the original LTX-2.0 behavior); num_inference_steps=30 is the default for LTX-2.3, while num_inference_steps=40 is the default for LTX-2.0.
There was a problem hiding this comment.
Let's treat the update on image conditioning strategy as a bug fix and not change anything else
There was a problem hiding this comment.
Changed the params back to the previous default values.
What does this PR do?
This PR adds two new LTX-2.X pipelines:
LTX2InContextPipeline, which supports in-context (IC) conditioning (used for example by some IC LoRAs) andLTX2HDRPipeline, which supports the newly released high dynamic range (HDR) pipeline (and HDR IC-LoRA) introduced in the LTX LumiVid paper.This PR also updates
LTX2ConditionPipelineto follow the LTX-2 repo's current image conditioning strategy, which overwrites the noisy latents only for first-frame (I2V) conditions and treats non-first-frame as keyframe conditions which are appended to the noisy latents. (Previously, the pipeline overwrote the noisy latents at all latent indices.)Here is an example of using
LTX2InContextPipelinewith theLightricks/LTX-2-19b-LoRA-Camera-Control-Dolly-InIC LoRA, which biases the generated video toward panning in on the subject:LTX-2.3 IC LoRA Example Script
ltx2_ic_lora_output.mp4
And here is an example of using
LTX2HDRPipelinewith theLightricks/LTX-2.3-22b-IC-LoRA-HDRHDR IC-LoRA, using the video above as the reference:LTX-2.3 HDR IC LoRA Example Script
ltx2_hdr_lora_output.mp4
This uses the default tone-mapper that simply clips HDR values to
[0, 1], which is also used by the original LTX-2 code.Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@yiyixuxu
@sayakpaul
@linoytsaban