Commit
·
72360bb
1
Parent(s):
9908ad1
Update app.py
Browse fileschanged the number of sample images
app.py
CHANGED
|
@@ -172,7 +172,7 @@ def p_sample_loop(model, shape):
|
|
| 172 |
img = torch.randn(shape, device=device)
|
| 173 |
imgs = []
|
| 174 |
|
| 175 |
-
for i in tqdm(reversed(range(0, timesteps)), desc='sampling loop time step', total=
|
| 176 |
img = p_sample(model, img, torch.full((b,), i, device=device, dtype=torch.long), 3)
|
| 177 |
imgs.append(img.cpu().numpy())
|
| 178 |
return imgs
|
|
|
|
| 172 |
img = torch.randn(shape, device=device)
|
| 173 |
imgs = []
|
| 174 |
|
| 175 |
+
for i in tqdm(reversed(range(0, timesteps)), desc='sampling loop time step', total=10):
|
| 176 |
img = p_sample(model, img, torch.full((b,), i, device=device, dtype=torch.long), 3)
|
| 177 |
imgs.append(img.cpu().numpy())
|
| 178 |
return imgs
|