We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e3a62f commit 6c4320aCopy full SHA for 6c4320a
1 file changed
optimum/habana/diffusers/pipelines/wan/pipeline_wan_i2v.py
@@ -453,6 +453,9 @@ def __call__(
453
if negative_prompt_embeds is not None:
454
negative_prompt_embeds = negative_prompt_embeds.to(transformer_dtype)
455
456
+ if self.do_classifier_free_guidance and negative_prompt_embeds is None:
457
+ raise ValueError("negative_prompt_embeds must not be None when classifier-free guidance is enabled.")
458
+
459
# only wan 2.1 i2v transformer accepts image_embeds
460
if self.transformer is not None and self.transformer.config.image_dim is not None:
461
if image_embeds is None:
0 commit comments