  """ Face and landmarks detection for faceswap.py """
  
  import logging
  import os
  
  from hashlib import sha1
  from typing import Dict, List, TYPE_CHECKING
  
 
</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 from .aligned_face import AlignedFace, _EXTRACT_RATIOS, get_matrix_scaling, get_centered_size, PoseEstimate, transform_image  # noqa
 </s> add from .aligned_face import (AlignedFace, _EXTRACT_RATIOS, get_adjusted_center,  # noqa
                           get_matrix_scaling,  get_centered_size, PoseEstimate, transform_image)
import sys
  """ Face and landmarks detection for faceswap.py """
  
  import logging
import sys
  import os
  
  from hashlib import sha1
  from typing import Dict, List, TYPE_CHECKING
  
keep keep add 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