Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1338,7 +1338,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1338 |
latent_timestep = timesteps[:1].repeat(batch_size * num_videos_per_prompt)
|
1339 |
self._num_timesteps = len(timesteps)
|
1340 |
num_channels_latents = self.unet.config.in_channels
|
1341 |
-
latents = self.
|
1342 |
video=init_image,
|
1343 |
height=height,
|
1344 |
width=width,
|
|
|
1338 |
latent_timestep = timesteps[:1].repeat(batch_size * num_videos_per_prompt)
|
1339 |
self._num_timesteps = len(timesteps)
|
1340 |
num_channels_latents = self.unet.config.in_channels
|
1341 |
+
latents = self.prepare_video_latents(
|
1342 |
video=init_image,
|
1343 |
height=height,
|
1344 |
width=width,
|