Skip to content

Commit

Permalink
fix vae decode in sd demo
Browse files Browse the repository at this point in the history
  • Loading branch information
tianleiwu committed Nov 4, 2023
1 parent eff8636 commit eab1706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _infer(
latents = self.denoise_latent(latents, text_embeddings, guidance=guidance)

# VAE decode latent
images = self.decode_latent(latents)
images = self.decode_latent(latents / self.vae_scaling_factor)

torch.cuda.synchronize()
e2e_toc = time.perf_counter()
Expand Down

0 comments on commit eab1706

Please sign in to comment.