hysts commited on
Commit
3b12a8b
1 Parent(s): ba17461

Fix type annotation

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -84,7 +84,7 @@ class Model:
84
  return data
85
 
86
  @staticmethod
87
- def process_mask(mask: torch.Tensor) -> torch.Tensor:
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)