WiNE-iNEFF commited on
Commit
fae8ae5
·
1 Parent(s): b0dc80e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def generate(schedul):
46
  scheduler.set_timesteps(num_inference_steps=40)
47
  x = torch.randn(1, 4, 64, 64).to(device)
48
  # Minimal sampling loop
49
- for i, t in enumerate(scheduler.timesteps):
50
  model_input = scheduler.scale_model_input(x, t)
51
  with torch.no_grad():
52
  noise_pred = image_pipe.unet(model_input, t)["sample"]
 
46
  scheduler.set_timesteps(num_inference_steps=40)
47
  x = torch.randn(1, 4, 64, 64).to(device)
48
  # Minimal sampling loop
49
+ for i, t in tqdm(enumerate(scheduler.timesteps)):
50
  model_input = scheduler.scale_model_input(x, t)
51
  with torch.no_grad():
52
  noise_pred = image_pipe.unet(model_input, t)["sample"]