Skip to content

Fix Wan I2V Quality #11087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/diffusers/pipelines/wan/pipeline_wan_i2v.py
Co-authored-by: YiYi Xu <[email protected]>
  • Loading branch information
chengzeyi and yiyixuxu authored Mar 17, 2025
commit ac153827f57995d4f42f718450bc687e72a40d85
2 changes: 1 addition & 1 deletion src/diffusers/pipelines/wan/pipeline_wan_i2v.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def retrieve_latents(
generator: Optional[torch.Generator] = None,
sample_mode: str = "argmax",
):
if hasattr(encoder_output, "latent_dist") and sample_mode == "none":
if hasattr(encoder_output, "latent_dist") and sample_mode == "argmax":
return (encoder_output.latent_dist.mean - latents_mean) * latents_std
else:
raise AttributeError("Could not access latents of provided encoder_output")
Expand Down