ford442 commited on
Commit
8c0b627
·
1 Parent(s): 3f0ff20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -242,6 +242,7 @@ def generate_90(
242
  if use_resolution_binning:
243
  options["use_resolution_binning"] = True
244
  images = []
 
245
  with torch.no_grad():
246
  for i in range(0, num_images, BATCH_SIZE):
247
  batch_options = options.copy()
 
242
  if use_resolution_binning:
243
  options["use_resolution_binning"] = True
244
  images = []
245
+ pipe.scheduler.set_timesteps(num_inference_steps,device)
246
  with torch.no_grad():
247
  for i in range(0, num_images, BATCH_SIZE):
248
  batch_options = options.copy()