rupeshs commited on
Commit
0d7ef9c
1 Parent(s): 7f3be1a

upscaler update

Browse files
Files changed (1) hide show
  1. frontend/webui/text_to_image_ui.py +3 -1
frontend/webui/text_to_image_ui.py CHANGED
@@ -81,7 +81,9 @@ def generate_text_to_image(
81
  #out_images.append(image.resize((768, 768),resample=Image.LANCZOS))
82
  in_image = ImageLoader.load_image(image)
83
  up_image =upscaler(in_image)
84
- out_images.append(up_image)
 
 
85
 
86
  return out_images
87
 
 
81
  #out_images.append(image.resize((768, 768),resample=Image.LANCZOS))
82
  in_image = ImageLoader.load_image(image)
83
  up_image =upscaler(in_image)
84
+ transform = T.ToPILImage()
85
+ pil_img=transform(up_image.squeeze())
86
+ out_images.append(pil_img)
87
 
88
  return out_images
89