Spaces:
Runtime error
Runtime error
process mask
Browse files
model.py
CHANGED
|
@@ -87,7 +87,7 @@ class Model:
|
|
| 87 |
def process_mask(mask: np.ndarray) -> np.ndarray:
|
| 88 |
if mask.shape != (512, 256, 3):
|
| 89 |
mask = mask.resize(
|
| 90 |
-
size=(
|
| 91 |
resample=PIL.Image.NEAREST)
|
| 92 |
seg_map = np.full(mask.shape[:-1], -1)
|
| 93 |
for index, color in enumerate(COLOR_LIST):
|
|
|
|
| 87 |
def process_mask(mask: np.ndarray) -> np.ndarray:
|
| 88 |
if mask.shape != (512, 256, 3):
|
| 89 |
mask = mask.resize(
|
| 90 |
+
size=(512, 256),
|
| 91 |
resample=PIL.Image.NEAREST)
|
| 92 |
seg_map = np.full(mask.shape[:-1], -1)
|
| 93 |
for index, color in enumerate(COLOR_LIST):
|