  
  import cv2
  import numpy as np
  
  from . import AlignedFace, _EXTRACT_RATIOS
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
  class DetectedFace():
 
</s> remove from lib.align import Alignments, DetectedFace
 </s> add from lib.align import Alignments, AlignedFace, DetectedFace, get_centered_size </s> remove from .aligned_face import AlignedFace, _EXTRACT_RATIOS, get_matrix_scaling, PoseEstimate, transform_image  # noqa
 </s> add from .aligned_face import AlignedFace, _EXTRACT_RATIOS, get_matrix_scaling, get_centered_size, PoseEstimate, transform_image  # noqa </s> remove                              centering, self._cache["cropped_slices"][0][centering])
        return self._cache["cropped_slices"][0][centering]
 </s> add                              self._centering, self._cache["cropped_slices"][0][self._centering])
        return self._cache["cropped_slices"][0][self._centering] </s> remove         if self._alignments_version[side] == 1.0:
            centering = "legacy"
            size = self._training_sizes[side]
        else:
            centering = self._config["centering"]
            size = list(self._aligned_faces[side].values())[0].get_cropped_size(centering)
 </s> add         size = list(self._aligned_faces[side].values())[0].size </s> remove             size = self._training_sizes[side]
            centering = "legacy" if self._alignments_version[side] == 1.0 else "head"
            logger.debug("side: %s, centering: %s", side, centering)
 </s> add 
from . import AlignedFace, _EXTRACT_RATIOS, get_centered_size
  
  import cv2
  import numpy as np
  
from . import AlignedFace, _EXTRACT_RATIOS, get_centered_size
  
  logger = logging.getLogger(__name__)  # pylint: disable=invalid-name
  
  
  class DetectedFace():
keep keep keep keep replace keep keep keep keep keep
 Bugfix - Warp to landmarks 
lib/align/detected_face.py