1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Allow the I2V pipeline to accept image URLs

This commit is contained in:
Daniel Gu
2026-01-06 06:40:42 +01:00
parent ef199118e2
commit ace2ee93fb

View File

@@ -6,6 +6,7 @@ from PIL import Image
from diffusers.pipelines.ltx2 import LTX2ImageToVideoPipeline
from diffusers.pipelines.ltx2.export_utils import encode_video
from diffusers.utils import load_image
def parse_args():
@@ -67,8 +68,10 @@ def main(args):
else:
pipeline.to(device=args.device)
image = load_image(args.image_path)
video, audio = pipeline(
image=Image.open(args.image_path),
image=image,
prompt=args.prompt,
negative_prompt=args.negative_prompt,
height=args.height,