Spaces:
Running
Running
hysts
commited on
Commit
·
3b12a8b
1
Parent(s):
ba17461
Fix type annotation
Browse files
model.py
CHANGED
|
@@ -84,7 +84,7 @@ class Model:
|
|
| 84 |
return data
|
| 85 |
|
| 86 |
@staticmethod
|
| 87 |
-
def process_mask(mask:
|
| 88 |
if mask.shape != (512, 256, 3):
|
| 89 |
return None
|
| 90 |
seg_map = np.full(mask.shape[:-1], -1)
|
|
|
|
| 84 |
return data
|
| 85 |
|
| 86 |
@staticmethod
|
| 87 |
+
def process_mask(mask: np.ndarray) -> np.ndarray:
|
| 88 |
if mask.shape != (512, 256, 3):
|
| 89 |
return None
|
| 90 |
seg_map = np.full(mask.shape[:-1], -1)
|