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 c01d2bf commit ac15382Copy full SHA for ac15382
src/diffusers/pipelines/wan/pipeline_wan_i2v.py
@@ -115,7 +115,7 @@ def retrieve_latents(
115
generator: Optional[torch.Generator] = None,
116
sample_mode: str = "argmax",
117
):
118
- if hasattr(encoder_output, "latent_dist") and sample_mode == "none":
+ if hasattr(encoder_output, "latent_dist") and sample_mode == "argmax":
119
return (encoder_output.latent_dist.mean - latents_mean) * latents_std
120
else:
121
raise AttributeError("Could not access latents of provided encoder_output")
0 commit comments