We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c63cc0 commit 720519dCopy full SHA for 720519d
src/diffusers/models/transformers/transformer_hunyuan_video.py
@@ -893,7 +893,12 @@ def __init__(
893
image_condition_type: Optional[str] = None,
894
) -> None:
895
super().__init__()
896
- assert image_condition_type is None or image_condition_type in ["latent_concat", "token_replace"]
+
897
+ supported_image_condition_types = ["latent_concat", "token_replace"]
898
+ if image_condition_type is not None and image_condition_type not in supported_image_condition_types:
899
+ raise ValueError(
900
+ f"Invalid `image_condition_type` ({image_condition_type}). Supported ones are: {supported_image_condition_types}"
901
+ )
902
903
inner_dim = num_attention_heads * attention_head_dim
904
out_channels = out_channels or in_channels
0 commit comments