update padding
Browse files
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((
|
| 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:
|