ssoxye commited on
Commit
d2a5241
·
1 Parent(s): 9fd1f1e

update padding

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ def preprocess_mask(mask_img: Image.Image) -> Image.Image:
268
  target_width = 1024
269
  m = _pad_or_crop_to_width_np(m, target_width, pad_value=0)
270
 
271
- kernel = np.ones((17, 17), np.uint8)
272
  m = cv2.dilate(m, kernel, iterations=1)
273
 
274
  if DEBUG_SAVE:
 
268
  target_width = 1024
269
  m = _pad_or_crop_to_width_np(m, target_width, pad_value=0)
270
 
271
+ kernel = np.ones((12, 12), np.uint8)
272
  m = cv2.dilate(m, kernel, iterations=1)
273
 
274
  if DEBUG_SAVE: