Spaces:
Running
Running
changed upscaling
Browse files
frontend/webui/text_to_image_ui.py
CHANGED
@@ -77,9 +77,7 @@ def generate_text_to_image(
|
|
77 |
previous_num_of_images = 1
|
78 |
out_images = []
|
79 |
for image in images:
|
80 |
-
|
81 |
-
upscaled_image = zoom(img_arr, (2, 2, 1), order=3)
|
82 |
-
out_images.append(Image.fromarray(upscaled_image.astype(np.uint8)))
|
83 |
|
84 |
return out_images
|
85 |
|
|
|
77 |
previous_num_of_images = 1
|
78 |
out_images = []
|
79 |
for image in images:
|
80 |
+
out_images.append(image.resize((768, 768),resample=Image.LANCZOS))
|
|
|
|
|
81 |
|
82 |
return out_images
|
83 |
|