Skip to content

Commit

Permalink
Fix AsymmetricAutoencoderKL forward (huggingface#8378)
Browse files Browse the repository at this point in the history
  • Loading branch information
townwish4git authored Jun 4, 2024
1 parent dc89434 commit 6be43bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/models/autoencoders/autoencoder_asym_kl.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def forward(
z = posterior.sample(generator=generator)
else:
z = posterior.mode()
dec = self.decode(z, sample, mask).sample
dec = self.decode(z, generator, sample, mask).sample

if not return_dict:
return (dec,)
Expand Down

0 comments on commit 6be43bd

Please sign in to comment.