rupeshs commited on
Commit
6c8f4d4
1 Parent(s): 5ebc76c

changed upscaling

Browse files
Files changed (1) hide show
  1. frontend/webui/text_to_image_ui.py +1 -3
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
- img_arr = np.array(image)
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