Skip to content

Commit

Permalink
Output from decoding latents was changed to a data wrapping object, u…
Browse files Browse the repository at this point in the history
…nwrap it.
  • Loading branch information
csaluski committed Sep 25, 2022
1 parent 8a111dd commit 7ae0aaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def diffuse_from_inits(self, text_embeddings,

# scale and decode the image latents with vae
latents = 1 / 0.18215 * latents
image = self.vae.decode(latents)
image = self.vae.decode(latents).sample

image = (image / 2 + 0.5).clamp(0, 1)
image = image.cpu().permute(0, 2, 3, 1).numpy()
Expand Down

0 comments on commit 7ae0aaa

Please sign in to comment.