                                     centering=mask.stored_centering,
                                     size=detected_face.image.shape[0],
                                     is_aligned=True).face
              else:
                  centering = "legacy" if self._alignments.version == 1.0 else mask.stored_centering
                  detected_face.load_aligned(detected_face.image, centering=centering, force=True)
                  face = detected_face.aligned.face
              mask = cv2.resize(detected_face.mask[mask_type].mask,
                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
 
</s> remove             mask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
            mask = np.expand_dims(mask, -1)
 </s> add             imask = mask.get_full_frame_mask(face.shape[1], face.shape[0])
            imask = np.expand_dims(imask, -1) </s> remove         args = tuple() if self._update_type == "output" else (self._extractor.input_queue, )
 </s> add         if self._update_type == "output":
            args: tuple = tuple()
        else:
            assert self._extractor is not None
            args = (self._extractor.input_queue, )
                centering: "CenteringType" = ("legacy" if self._alignments.version == 1.0
                                              else mask.stored_centering)
                                     centering=mask.stored_centering,
                                     size=detected_face.image.shape[0],
                                     is_aligned=True).face
              else:
                centering: "CenteringType" = ("legacy" if self._alignments.version == 1.0
                                              else mask.stored_centering)
                  detected_face.load_aligned(detected_face.image, centering=centering, force=True)
                  face = detected_face.aligned.face
              mask = cv2.resize(detected_face.mask[mask_type].mask,
                                (face.shape[1], face.shape[0]),
                                interpolation=cv2.INTER_CUBIC)[..., None]
keep keep keep keep 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