KenjieDec commited on
Commit
29b44e9
·
1 Parent(s): 715fe0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def brush_stroke_mask(img, color=(255,255,255)):
78
  mask = generate_mask(height, width, img)
79
  return mask
80
 
81
- def resize(self,image,width = 1024):
82
  aspect_ratio = float(image.shape[1])/float(image.shape[0])
83
  height = width/aspect_ratio
84
  image = cv2.resize(image, (int(height),int(width)))
 
78
  mask = generate_mask(height, width, img)
79
  return mask
80
 
81
+ def resize(image, width = 1024):
82
  aspect_ratio = float(image.shape[1])/float(image.shape[0])
83
  height = width/aspect_ratio
84
  image = cv2.resize(image, (int(height),int(width)))