codeslake commited on
Commit
1436059
1 Parent(s): 7369de5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -56,6 +56,10 @@ def resize(img):
56
  wsize=int(w*scale_ratio)
57
  hsize=int(h*scale_ratio)
58
  img = img.resize((wsize,hsize), Image.ANTIALIAS)
 
 
 
 
59
  return img
60
 
61
 
56
  wsize=int(w*scale_ratio)
57
  hsize=int(h*scale_ratio)
58
  img = img.resize((wsize,hsize), Image.ANTIALIAS)
59
+ w = img.size[0]
60
+ h = img.size[1]
61
+ img = img.crop(0, 0, w-w%8, h-h%8)
62
+
63
  return img
64
 
65