yumingj commited on
Commit
c5bdcdb
1 Parent(s): 2e9f191

process mask

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -86,7 +86,7 @@ class Model:
86
  @staticmethod
87
  def process_mask(mask: np.ndarray) -> np.ndarray:
88
  if mask.shape != (512, 256, 3):
89
- mask = image.resize(
90
  size=(256, 512),
91
  resample=PIL.Image.NEAREST)
92
  seg_map = np.full(mask.shape[:-1], -1)
 
86
  @staticmethod
87
  def process_mask(mask: np.ndarray) -> np.ndarray:
88
  if mask.shape != (512, 256, 3):
89
+ mask = mask.resize(
90
  size=(256, 512),
91
  resample=PIL.Image.NEAREST)
92
  seg_map = np.full(mask.shape[:-1], -1)