Official repository for LTX-Video
Python diffusion-modelsditimage-to-videoimage-to-video-generationtext-to-videotext-to-video-generation
pipeline: Support batch inference
Yoav HaCohenc3b2d8054f03
diff --git a/ltx_video/pipelines/pipeline_ltx_video.py b/ltx_video/pipelines/pipeline_ltx_video.pyindex cd779dd..9d09aa3 100644--- a/ltx_video/pipelines/pipeline_ltx_video.py+++ b/ltx_video/pipelines/pipeline_ltx_video.py@@ -548,12 +548,10 @@ class LTXVideoPipeline(DiffusionPipeline):if latents is None:latents = randn_tensor(- shape, generator=generator, device=generator.device, dtype=dtype+ shape, generator=generator, device=device, dtype=dtype)elif latents_mask is not None:- noise = randn_tensor(- shape, generator=generator, device=generator.device, dtype=dtype- )+ noise = randn_tensor(shape, generator=generator, device=device, dtype=dtype)latents = latents * latents_mask[..., None] + noise * (1 - latents_mask[..., None])