Skip to content

Commit ace2ee9

Browse files
committed
Allow the I2V pipeline to accept image URLs
1 parent ef19911 commit ace2ee9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/ltx2_test_full_pipeline_i2v.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from diffusers.pipelines.ltx2 import LTX2ImageToVideoPipeline
88
from diffusers.pipelines.ltx2.export_utils import encode_video
9+
from diffusers.utils import load_image
910

1011

1112
def parse_args():
@@ -67,8 +68,10 @@ def main(args):
6768
else:
6869
pipeline.to(device=args.device)
6970

71+
image = load_image(args.image_path)
72+
7073
video, audio = pipeline(
71-
image=Image.open(args.image_path),
74+
image=image,
7275
prompt=args.prompt,
7376
negative_prompt=args.negative_prompt,
7477
height=args.height,

0 commit comments

Comments
 (0)