  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
  _MEAN_FACE = np.array([[0.010086, 0.106454], [0.085135, 0.038915], [0.191003, 0.018748],
                         [0.300643, 0.034489], [0.403270, 0.077391], [0.596729, 0.077391],
                         [0.699356, 0.034489], [0.808997, 0.018748], [0.914864, 0.038915],
                         [0.989913, 0.106454], [0.500000, 0.203352], [0.500000, 0.307009],
                         [0.500000, 0.409805], [0.500000, 0.515625], [0.376753, 0.587326],
 
</s> remove from . import AlignedFace, _EXTRACT_RATIOS, get_centered_size
 </s> add from . import AlignedFace, get_adjusted_center, get_centered_size

if TYPE_CHECKING:
    from .aligned_face import CenteringType

if sys.version_info < (3, 8):
    from typing_extensions import Literal
else:
    from typing import Literal </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             mask = self._get_stored_mask(detected_face, centering, sub_crop_offset)
 </s> add             mask = self._get_stored_mask(detected_face, centering, source_offset, target_offset) </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,
CenteringType = Literal["face", "head", "legacy"]
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
CenteringType = Literal["face", "head", "legacy"]
  
  _MEAN_FACE = np.array([[0.010086, 0.106454], [0.085135, 0.038915], [0.191003, 0.018748],
                         [0.300643, 0.034489], [0.403270, 0.077391], [0.596729, 0.077391],
                         [0.699356, 0.034489], [0.808997, 0.018748], [0.914864, 0.038915],
                         [0.989913, 0.106454], [0.500000, 0.203352], [0.500000, 0.307009],
                         [0.500000, 0.409805], [0.500000, 0.515625], [0.376753, 0.587326],
keep keep add keep keep keep keep keep keep
 lib.detected_face.Mask
  - Add source + target offset and coverage to set_sub_crop method 
lib/align/aligned_face.py