Spaces:
Runtime error
Runtime error
jhj0517
commited on
Commit
·
1c3a875
1
Parent(s):
cbd23da
Add return type hint
Browse files- modules/mask_utils.py +2 -2
modules/mask_utils.py
CHANGED
|
@@ -108,7 +108,7 @@ def create_mask_pixelized_image(
|
|
| 108 |
image: np.ndarray,
|
| 109 |
masks: List,
|
| 110 |
pixel_size: int = DEFAULT_PIXEL_SIZE
|
| 111 |
-
):
|
| 112 |
final_result = image.copy()
|
| 113 |
|
| 114 |
def pixelize(img: np.ndarray, mask: np.ndarray[np.uint8], pixel_size: int):
|
|
@@ -134,7 +134,7 @@ def create_solid_color_mask_image(
|
|
| 134 |
image: np.ndarray,
|
| 135 |
masks: List,
|
| 136 |
color_hex: str = DEFAULT_COLOR
|
| 137 |
-
):
|
| 138 |
final_result = image.copy()
|
| 139 |
|
| 140 |
def hex_to_bgr(hex_color: str):
|
|
|
|
| 108 |
image: np.ndarray,
|
| 109 |
masks: List,
|
| 110 |
pixel_size: int = DEFAULT_PIXEL_SIZE
|
| 111 |
+
) -> np.ndarray:
|
| 112 |
final_result = image.copy()
|
| 113 |
|
| 114 |
def pixelize(img: np.ndarray, mask: np.ndarray[np.uint8], pixel_size: int):
|
|
|
|
| 134 |
image: np.ndarray,
|
| 135 |
masks: List,
|
| 136 |
color_hex: str = DEFAULT_COLOR
|
| 137 |
+
) -> np.ndarray:
|
| 138 |
final_result = image.copy()
|
| 139 |
|
| 140 |
def hex_to_bgr(hex_color: str):
|