yizhangliu commited on
Commit
0840b84
1 Parent(s): 5db5ac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -79,7 +79,7 @@ def model_process(image, mask):
79
  original_shape = image.shape
80
  interpolation = cv2.INTER_CUBIC
81
 
82
- size_limit = 1080 # "Original"
83
  if size_limit == "Original":
84
  size_limit = max(image.shape)
85
  else:
@@ -148,8 +148,8 @@ def predict(input):
148
  mask_pil = input['mask']
149
  image = np.array(image_pil)
150
  mask = np.array(mask_pil.convert("L"))
151
- output = mask_pil
152
- # output = model_process(image, mask)
153
  return output
154
 
155
  css = '''
 
79
  original_shape = image.shape
80
  interpolation = cv2.INTER_CUBIC
81
 
82
+ size_limit = 512 #1080 # "Original"
83
  if size_limit == "Original":
84
  size_limit = max(image.shape)
85
  else:
 
148
  mask_pil = input['mask']
149
  image = np.array(image_pil)
150
  mask = np.array(mask_pil.convert("L"))
151
+ # output = mask_pil
152
+ output = model_process(image, mask)
153
  return output
154
 
155
  css = '''