udion commited on
Commit
27016ff
·
1 Parent(s): d0d28e7
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -74,7 +74,8 @@ def predict(img):
74
  upscale_factor = 4
75
  # lr_transforms = transforms.Resize((image_size[0]//upscale_factor, image_size[1]//upscale_factor), interpolation=IMode.BICUBIC, antialias=True)
76
  # to retain aspect ratio
77
- lr_transforms = transforms.Resize(image_size[0]//upscale_factor, interpolation=IMode.BICUBIC, antialias=True)
 
78
  # lr_transforms = transforms.Resize((128, 128), interpolation=IMode.BICUBIC, antialias=True)
79
 
80
  img = Image.fromarray(np.array(img))
@@ -149,4 +150,4 @@ gr.Interface(
149
  ["./demo_examples/head.png"],
150
  ["./demo_examples/woman.png"],
151
  ]
152
- ).launch()
 
74
  upscale_factor = 4
75
  # lr_transforms = transforms.Resize((image_size[0]//upscale_factor, image_size[1]//upscale_factor), interpolation=IMode.BICUBIC, antialias=True)
76
  # to retain aspect ratio
77
+ lr_transforms = transforms.Resize(64, interpolation=IMode.BICUBIC, antialias=True)
78
+ #lr_transforms = transforms.Resize(image_size[0]//upscale_factor, interpolation=IMode.BICUBIC, antialias=True)
79
  # lr_transforms = transforms.Resize((128, 128), interpolation=IMode.BICUBIC, antialias=True)
80
 
81
  img = Image.fromarray(np.array(img))
 
150
  ["./demo_examples/head.png"],
151
  ["./demo_examples/woman.png"],
152
  ]
153
+ ).launch()