  import numpy as np
  
  from lib.image import encode_image, read_image
  from lib.utils import FaceswapError
  from . import AlignedFace, _EXTRACT_RATIOS, get_centered_size
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
  class DetectedFace():
 
</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)
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
  import numpy as np
  
  from lib.image import encode_image, read_image
  from lib.utils import FaceswapError
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
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
  class DetectedFace():
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