Spaces:
Runtime error
Runtime error
Commit
·
4c2cb43
1
Parent(s):
c6f1748
update UI
Browse files
app.py
CHANGED
|
@@ -918,10 +918,7 @@ def generate_image_with_steps(prompt, negative_prompt, seed, width, height, guid
|
|
| 918 |
x_sample = 255. * rearrange(x_sample.cpu().numpy(), 'c h w -> h w c')
|
| 919 |
image = Image.fromarray(x_sample.astype(np.uint8))
|
| 920 |
# base_count += 1
|
| 921 |
-
|
| 922 |
-
width = width / 2
|
| 923 |
-
height = height / 2
|
| 924 |
-
image = image.resize((int(width), int(height)))
|
| 925 |
# image = pipe(
|
| 926 |
# prompt=prompt,
|
| 927 |
# negative_prompt=negative_prompt,
|
|
|
|
| 918 |
x_sample = 255. * rearrange(x_sample.cpu().numpy(), 'c h w -> h w c')
|
| 919 |
image = Image.fromarray(x_sample.astype(np.uint8))
|
| 920 |
# base_count += 1
|
| 921 |
+
|
|
|
|
|
|
|
|
|
|
| 922 |
# image = pipe(
|
| 923 |
# prompt=prompt,
|
| 924 |
# negative_prompt=negative_prompt,
|