52Hz commited on
Commit
9d4af34
·
1 Parent(s): 569d82a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def inference(img):
12
  basewidth = 256
13
  wpercent = (basewidth / float(img.size[0]))
14
  hsize = int((float(img.size[1]) * float(wpercent)))
15
- img = img.resize((basewidth, hsize), Image.ANTIALIAS)
16
  img.save("test/1.jpg", "JPEG")
17
  os.system(
18
  'python main_test_CMFNet.py --input_dir test --weights experiments/pretrained_models/deraindrop_model.pth')
 
12
  basewidth = 256
13
  wpercent = (basewidth / float(img.size[0]))
14
  hsize = int((float(img.size[1]) * float(wpercent)))
15
+ img = img.resize((basewidth, hsize), Image.BILINEAR)
16
  img.save("test/1.jpg", "JPEG")
17
  os.system(
18
  'python main_test_CMFNet.py --input_dir test --weights experiments/pretrained_models/deraindrop_model.pth')