From df2ca6ed225e29b9dea93f78947739aedd2abfda Mon Sep 17 00:00:00 2001 From: Daniel Gu Date: Mon, 16 Feb 2026 01:33:14 +0100 Subject: [PATCH] Center crop LTX-2 conditions following original code --- src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py b/src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py index b528c2a69e..7ac11edc95 100644 --- a/src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py +++ b/src/diffusers/pipelines/ltx2/pipeline_ltx2_condition.py @@ -779,7 +779,7 @@ class LTX2ConditionPipeline(DiffusionPipeline, FromSingleFileMixin, LTX2LoraLoad # Treat all other as videos. Note that this means 4D ndarrays and tensors will be treated as videos of # shape (F, H, W, C) and (F, C, H, W), respectively. video_like_cond = condition.frames - condition_pixels = self.video_processor.preprocess_video(video_like_cond, height, width) + condition_pixels = self.video_processor.preprocess_video(video_like_cond, height, width, resize_mode="crop") # Interpret the index as a latent index, following the original LTX-2 code. latent_start_idx = condition.index