Spaces:
Running
on
Zero
Running
on
Zero
amildravid4292
commited on
Update app.py
Browse files
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 |
|