Remove unnecessary empty if block in pre_process_func
Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
This commit is contained in:
1 parent
04900ebf04
commit
38cb8af97e
1 file changed
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user