Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,7 @@ def set_timesteps(scheduler, num_inference_steps):
|
|
| 51 |
scheduler.set_timesteps(num_inference_steps)
|
| 52 |
scheduler.timesteps = scheduler.timesteps.to(torch.float32) # minor fix to ensure MPS compatibility, fixed in diffusers PR 3925
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
# Prep latents
|
| 56 |
latents = torch.randn(
|
|
|
|
| 51 |
scheduler.set_timesteps(num_inference_steps)
|
| 52 |
scheduler.timesteps = scheduler.timesteps.to(torch.float32) # minor fix to ensure MPS compatibility, fixed in diffusers PR 3925
|
| 53 |
|
| 54 |
+
batch_size = 1
|
| 55 |
|
| 56 |
# Prep latents
|
| 57 |
latents = torch.randn(
|