                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
          else:
              face = np.array(detected_face.image)  # cv2 fails if this comes as imageio.core.Array
              mask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
              mask = np.expand_dims(mask, -1)
  
          height, width = face.shape[:2]
          if self._output["type"] == "combined":
              masked = (face.astype("float32") * mask.astype("float32") / 255.).astype("uint8")
              mask = np.tile(mask, 3)
 
</s> remove             masked = (face.astype("float32") * mask.astype("float32") / 255.).astype("uint8")
            mask = np.tile(mask, 3)
            for img in (face, masked, mask):
 </s> add             masked = (face.astype("float32") * imask.astype("float32") / 255.).astype("uint8")
            imask = np.tile(imask, 3)
            for img in (face, masked, imask): </s> remove                 out_image = np.concatenate((face, masked, mask), axis=1)
 </s> add                 out_image = np.concatenate((face, masked, imask), axis=1) </s> remove                 centering = "legacy" if self._alignments.version == 1.0 else mask.stored_centering
 </s> add                 centering: "CenteringType" = ("legacy" if self._alignments.version == 1.0
                                              else mask.stored_centering)
            imask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
            imask = np.expand_dims(imask, -1)
                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
          else:
              face = np.array(detected_face.image)  # cv2 fails if this comes as imageio.core.Array
            imask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
            imask = np.expand_dims(imask, -1)
            imask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
            imask = np.expand_dims(imask, -1)
  
          height, width = face.shape[:2]
          if self._output["type"] == "combined":
              masked = (face.astype("float32") * mask.astype("float32") / 255.).astype("uint8")
              mask = np.tile(mask, 3)
keep keep keep keep replace replace keep keep keep keep keep
 Minor updates and fixups
  - Mask Tool - Typing + BiSeNet mask update fix
  - Alignments Tool - Auto search for alignments file 
tools/mask/mask.py