Spaces:
Sleeping
Sleeping
Update corrupt_mask.py
Browse files- corrupt_mask.py +1 -1
corrupt_mask.py
CHANGED
|
@@ -107,7 +107,7 @@ class MaskCorruptor:
|
|
| 107 |
|
| 108 |
# add blurred boundaries
|
| 109 |
h, w = corrupted_mask.shape[:2]
|
| 110 |
-
dsize = (int(w // self.boundary_blur_level+1), int(h // self.boundary_blur_level+1))
|
| 111 |
corrupted_mask = cv2.resize(corrupted_mask, dsize, interpolation=cv2.INTER_NEAREST)
|
| 112 |
corrupted_mask = cv2.resize(corrupted_mask, (w,h), interpolation=cv2.INTER_NEAREST)
|
| 113 |
|
|
|
|
| 107 |
|
| 108 |
# add blurred boundaries
|
| 109 |
h, w = corrupted_mask.shape[:2]
|
| 110 |
+
dsize = (int(w // (self.boundary_blur_level+1)), int(h // (self.boundary_blur_level+1)))
|
| 111 |
corrupted_mask = cv2.resize(corrupted_mask, dsize, interpolation=cv2.INTER_NEAREST)
|
| 112 |
corrupted_mask = cv2.resize(corrupted_mask, (w,h), interpolation=cv2.INTER_NEAREST)
|
| 113 |
|