Skip to content

Commit

Permalink
Fix Latte output_type (#10558)
Browse files Browse the repository at this point in the history
update
  • Loading branch information
a-r-r-o-w authored Jan 13, 2025
1 parent edb8c1b commit e1c7269
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/diffusers/pipelines/latte/pipeline_latte.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from ...utils import (
BACKENDS_MAPPING,
BaseOutput,
deprecate,
is_bs4_available,
is_ftfy_available,
is_torch_xla_available,
Expand Down Expand Up @@ -848,7 +849,14 @@ def __call__(
if XLA_AVAILABLE:
xm.mark_step()

if not output_type == "latents":
if output_type == "latents":
deprecation_message = (
"Passing `output_type='latents'` is deprecated. Please pass `output_type='latent'` instead."
)
deprecate("output_type_latents", "1.0.0", deprecation_message, standard_warn=False)
output_type = "latent"

if not output_type == "latent":
video = self.decode_latents(latents, video_length, decode_chunk_size=14)
video = self.video_processor.postprocess_video(video=video, output_type=output_type)
else:
Expand Down

0 comments on commit e1c7269

Please sign in to comment.