Spaces:
Running
on
Zero
Running
on
Zero
Fix the resolution
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def generate_image(
|
|
| 182 |
max_sequence_length=512,
|
| 183 |
progress=gr.Progress(track_tqdm=True),
|
| 184 |
):
|
| 185 |
-
|
| 186 |
|
| 187 |
if seed == -1:
|
| 188 |
seed = torch.randint(0, 1000000, (1,)).item()
|
|
|
|
| 182 |
max_sequence_length=512,
|
| 183 |
progress=gr.Progress(track_tqdm=True),
|
| 184 |
):
|
| 185 |
+
width, height = get_resolution(resolution)
|
| 186 |
|
| 187 |
if seed == -1:
|
| 188 |
seed = torch.randint(0, 1000000, (1,)).item()
|