  import tensorflow as tf
  from tensorflow.python.framework import errors_impl as tf_errors
  from tqdm import tqdm
  
  from lib.align import Alignments, DetectedFace
  from lib.image import read_image_hash_batch
  from lib.training_data import TrainingDataGenerator
  from lib.utils import FaceswapError, get_backend, get_folder, get_image_paths
  from plugins.train._config import Config
  
 
</s> remove from . import AlignedFace, _EXTRACT_RATIOS
 </s> add from . import AlignedFace, _EXTRACT_RATIOS, 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                      old_centering, image.shape, out.shape)
 </s> add                      self._centering, image.shape, out.shape) </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 lib.align import Alignments, AlignedFace, DetectedFace, get_centered_size
  import tensorflow as tf
  from tensorflow.python.framework import errors_impl as tf_errors
  from tqdm import tqdm
  
from lib.align import Alignments, AlignedFace, DetectedFace, get_centered_size
  from lib.image import read_image_hash_batch
  from lib.training_data import TrainingDataGenerator
  from lib.utils import FaceswapError, get_backend, get_folder, get_image_paths
  from plugins.train._config import Config
  
keep keep keep keep replace keep keep keep keep keep
 Bugfix - Warp to landmarks 
plugins/train/trainer/_base.py