Omnibus commited on
Commit
e6554f6
1 Parent(s): a4bae92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -158,6 +158,7 @@ def load_im(img):
158
  new_h=new_w
159
  w=0
160
  h=0
 
161
  for i in range(int(height/new_h)):
162
  print(i)
163
  for b in range(10):
@@ -171,6 +172,8 @@ def load_im(img):
171
  # Cropped image of above dimension
172
  # (It will not change original image)
173
  im1 = im.crop((left, top, right, bottom))
 
 
174
  im_box.append(im1)
175
  w+=new_w
176
  yield im_box,[]
 
158
  new_h=new_w
159
  w=0
160
  h=0
161
+ newsize=(512,512)
162
  for i in range(int(height/new_h)):
163
  print(i)
164
  for b in range(10):
 
172
  # Cropped image of above dimension
173
  # (It will not change original image)
174
  im1 = im.crop((left, top, right, bottom))
175
+ im1 = im1.resize(newsize)
176
+
177
  im_box.append(im1)
178
  w+=new_w
179
  yield im_box,[]