amildravid4292 commited on
Commit
4783cef
·
verified ·
1 Parent(s): 77ce3b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -230,7 +230,7 @@ class main():
230
  latents = self.noise_scheduler.step(noise_pred, t, latents).prev_sample
231
 
232
  latents = 1 / 0.18215 * latents
233
- image = self.vae.decode(latents).sample
234
  image = (image / 2 + 0.5).clamp(0, 1)
235
  image = image.detach().cpu().float().permute(0, 2, 3, 1).numpy()[0]
236
 
 
230
  latents = self.noise_scheduler.step(noise_pred, t, latents).prev_sample
231
 
232
  latents = 1 / 0.18215 * latents
233
+ image = self.vae.decode(latents.float()).sample
234
  image = (image / 2 + 0.5).clamp(0, 1)
235
  image = image.detach().cpu().float().permute(0, 2, 3, 1).numpy()[0]
236