yizhangliu commited on
Commit
0665ec1
1 Parent(s): 08d22d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -189,7 +189,7 @@ def model_process(input):
189
  print(f"Resized image shape: {image.shape} / {image[250][250]}")
190
 
191
  # mask, _ = load_img(mask, gray=True)
192
- # mask = np.array(mask_pil)
193
  mask = resize_max_size(mask, size_limit=size_limit, interpolation=interpolation)
194
  print(f"mask image shape: {mask.shape} / {type(mask)} / {mask[250][250]}")
195
 
 
189
  print(f"Resized image shape: {image.shape} / {image[250][250]}")
190
 
191
  # mask, _ = load_img(mask, gray=True)
192
+ mask = np.array(mask_pil)
193
  mask = resize_max_size(mask, size_limit=size_limit, interpolation=interpolation)
194
  print(f"mask image shape: {mask.shape} / {type(mask)} / {mask[250][250]}")
195