Skip to content

Commit f4b5341

Browse files
committed
update
1 parent 606e6b2 commit f4b5341

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,6 @@ def prepare_latents(
511511
noise = randn_tensor(shape, generator=generator, device=device, dtype=dtype)
512512
latents = init_latents * conditioning_mask + noise * (1 - conditioning_mask)
513513

514-
init_latents = self._pack_latents(
515-
init_latents, self.transformer_spatial_patch_size, self.transformer_temporal_patch_size
516-
)
517514
conditioning_mask = self._pack_latents(
518515
conditioning_mask, self.transformer_spatial_patch_size, self.transformer_temporal_patch_size
519516
).squeeze(-1)
@@ -570,6 +567,8 @@ def __call__(
570567
Function invoked when calling the pipeline for generation.
571568
572569
Args:
570+
image (`PipelineImageInput`):
571+
The input image to condition the generation on. Must be an image, a list of images or a `torch.Tensor`.
573572
prompt (`str` or `List[str]`, *optional*):
574573
The prompt or prompts to guide the image generation. If not defined, one has to pass `prompt_embeds`.
575574
instead.

0 commit comments

Comments
 (0)