  
          self._blur = dict()
          self._blur_kernel = 0
          self._threshold = 0.0
          self._sub_crop = dict(size=None, slice_in=[], slice_out=[])
          self.set_blur_and_threshold()
          logger.trace("Initialized: %s", self.__class__.__name__)
  
      @property
      def mask(self):
 
</s> remove         logger.trace("mask shape: %s", mask.shape)
 </s> add         logger.trace("mask shape: %s", mask.shape)  # type: ignore </s> remove     def set_sub_crop(self, offset, centering):
 </s> add     def set_sub_crop(self,
                     source_offset: np.ndarray,
                     target_offset: np.ndarray,
                     centering: "CenteringType",
                     coverage_ratio: float = 1.0) -> None: </s> remove         if self._sub_crop["size"]:  # Crop the mask to the given centering
            out = np.zeros((self._sub_crop["size"], self._sub_crop["size"], 1), dtype=mask.dtype)
            slice_in, slice_out = self._sub_crop["slice_in"], self._sub_crop["slice_out"]
 </s> add         if self._sub_crop_size:  # Crop the mask to the given centering
            out = np.zeros((self._sub_crop_size, self._sub_crop_size, 1), dtype=mask.dtype)
            slice_in, slice_out = self._sub_crop_slices["in"], self._sub_crop_slices["out"] </s> remove         crop_offset = (reference_face.pose.offset[self._centering] -
                       reference_face.pose.offset[mask_centering])
        mask, raw_mask = self._adjustments["mask"].run(detected_face, crop_offset, self._centering,
 </s> add         mask, raw_mask = self._adjustments["mask"].run(detected_face,
                                                       reference_face.pose.offset[mask_centering],
                                                       reference_face.pose.offset[self._centering],
                                                       self._centering, </s> remove         mask.set_sub_crop(pose.offset[self._centering] - pose.offset[mask.stored_centering],
 </s> add         mask.set_sub_crop(pose.offset[mask.stored_centering],
                          pose.offset[self._centering],
        self._sub_crop_size = 0
        self._sub_crop_slices: Dict[Literal["in", "out"], List[slice]] = {}
  
          self._blur = dict()
          self._blur_kernel = 0
          self._threshold = 0.0
        self._sub_crop_size = 0
        self._sub_crop_slices: Dict[Literal["in", "out"], List[slice]] = {}
          self.set_blur_and_threshold()
          logger.trace("Initialized: %s", self.__class__.__name__)
  
      @property
      def mask(self):
keep keep keep keep replace keep keep keep keep keep
 lib.detected_face.Mask
  - Add source + target offset and coverage to set_sub_crop method 
lib/align/detected_face.py