File tree Expand file tree Collapse file tree
src/diffusers/pipelines/hunyuan_video1_5 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments