Skip to content

Commit 8e9ad1f

Browse files
committed
update
1 parent edb8c1b commit 8e9ad1f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/diffusers/pipelines/latte/pipeline_latte.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from ...utils import (
3131
BACKENDS_MAPPING,
3232
BaseOutput,
33+
deprecate,
3334
is_bs4_available,
3435
is_ftfy_available,
3536
is_torch_xla_available,
@@ -848,7 +849,14 @@ def __call__(
848849
if XLA_AVAILABLE:
849850
xm.mark_step()
850851

851-
if not output_type == "latents":
852+
if output_type == "latents":
853+
deprecation_message = (
854+
"Passing `output_type='latents'` is deprecated. Please pass `output_type='latent'` instead."
855+
)
856+
deprecate("output_type_latents", "1.0.0", deprecation_message, standard_warn=False)
857+
output_type = "latent"
858+
859+
if not output_type == "latent":
852860
video = self.decode_latents(latents, video_length, decode_chunk_size=14)
853861
video = self.video_processor.postprocess_video(video=video, output_type=output_type)
854862
else:

0 commit comments

Comments
 (0)