Spaces:
Sleeping
Sleeping
Commit
·
3c08f8e
1
Parent(s):
99311fd
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def show_images_save(x):
|
|
| 32 |
return grid_im
|
| 33 |
|
| 34 |
def generate():
|
| 35 |
-
x = torch.randn(
|
| 36 |
# Minimal sampling loop
|
| 37 |
for i, t in tqdm(enumerate(scheduler.timesteps)):
|
| 38 |
model_input = scheduler.scale_model_input(x, t)
|
|
|
|
| 32 |
return grid_im
|
| 33 |
|
| 34 |
def generate():
|
| 35 |
+
x = torch.randn(2, 4, 64, 64).to(device)
|
| 36 |
# Minimal sampling loop
|
| 37 |
for i, t in tqdm(enumerate(scheduler.timesteps)):
|
| 38 |
model_input = scheduler.scale_model_input(x, t)
|