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 566a915 commit 482415cCopy full SHA for 482415c
src/diffusers/pipelines/wan/pipeline_wan_i2v.py
@@ -117,7 +117,8 @@ def retrieve_latents(
117
):
118
if hasattr(encoder_output, "latent_dist") and sample_mode == "none":
119
return (encoder_output.latent_dist.mean - latents_mean) * latents_std
120
- elif hasattr(encoder_output, "latent_dist") and sample_mode == "sample":
+ else:
121
+ raise AttributeError("Could not access latents of provided encoder_output")
122
encoder_output.latent_dist.mean = (encoder_output.latent_dist.mean - latents_mean) * latents_std
123
encoder_output.latent_dist.logvar = torch.clamp(
124
(encoder_output.latent_dist.logvar - latents_mean) * latents_std, -30.0, 20.0
0 commit comments