Skip to content

Commit ac15382

Browse files
chengzeyiyiyixuxu
andauthored
Update src/diffusers/pipelines/wan/pipeline_wan_i2v.py
Co-authored-by: YiYi Xu <[email protected]>
1 parent c01d2bf commit ac15382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/wan/pipeline_wan_i2v.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def retrieve_latents(
115115
generator: Optional[torch.Generator] = None,
116116
sample_mode: str = "argmax",
117117
):
118-
if hasattr(encoder_output, "latent_dist") and sample_mode == "none":
118+
if hasattr(encoder_output, "latent_dist") and sample_mode == "argmax":
119119
return (encoder_output.latent_dist.mean - latents_mean) * latents_std
120120
else:
121121
raise AttributeError("Could not access latents of provided encoder_output")

0 commit comments

Comments
 (0)