Skip to content

Commit 2f6914d

Browse files
author
yiyi@huggingface.co
committed
up up
1 parent c739ee9 commit 2f6914d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/diffusers/pipelines/hunyuan_video1_5/pipeline_hunyuan_video1_5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def __init__(
227227
self.video_processor = HunyuanVideo15ImageProcessor(vae_scale_factor=self.vae_scale_factor_spatial)
228228
self.target_size = self.transformer.config.target_size if getattr(self, "transformer", None) else 640
229229
self.vision_states_dim = self.transformer.config.image_embed_dim if getattr(self, "transformer", None) else 1152
230-
self.num_channels_latents = self.vae.latent_channels if hasattr(self, "vae") else 32
230+
self.num_channels_latents = self.vae.config.latent_channels if hasattr(self, "vae") else 32
231231
# fmt: off
232232
self.system_message = "You are a helpful assistant. Describe the video by detailing the following aspects: \
233233
1. The main content and theme of the video. \
@@ -594,7 +594,7 @@ def __call__(
594594
prompt_embeds_mask_2: Optional[torch.Tensor] = None,
595595
negative_prompt_embeds_2: Optional[torch.Tensor] = None,
596596
negative_prompt_embeds_mask_2: Optional[torch.Tensor] = None,
597-
output_type: Optional[str] = "pil",
597+
output_type: Optional[str] = "np",
598598
return_dict: bool = True,
599599
attention_kwargs: Optional[Dict[str, Any]] = None,
600600
):

0 commit comments

Comments
 (0)