Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|