From 38cb8af97e2715a296bdce1849264f42bef10da0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 19 Jan 2026 04:39:57 +0000 Subject: [PATCH] Remove unnecessary empty if block in pre_process_func Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com> --- vllm_omni/diffusion/models/ltx2/pipeline_ltx2.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vllm_omni/diffusion/models/ltx2/pipeline_ltx2.py b/vllm_omni/diffusion/models/ltx2/pipeline_ltx2.py index c74de2684..f1469531a 100644 --- a/vllm_omni/diffusion/models/ltx2/pipeline_ltx2.py +++ b/vllm_omni/diffusion/models/ltx2/pipeline_ltx2.py @@ -44,11 +44,6 @@ def get_ltx2_pre_process_func( if req.image_path is not None and req.pil_image is None: req.pil_image = PIL.Image.open(req.image_path).convert("RGB") - # For image-to-video, store the image for later use - if req.pil_image is not None: - # LTX-2 will handle image resizing internally - pass - return requests return pre_process_func