himanshu-skid19 commited on
Commit
72360bb
·
1 Parent(s): 9908ad1

Update app.py

Browse files

changed the number of sample images

Files changed (1) hide show
  1. app.py +1 -1
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=timesteps):
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