          """ Pre-generate aligned faces as they are needed for all training functions.
  
          Returns
          -------
          dict
              The "a", "b" keys for each side, containing a sub-dictionary with the
              filename as key and :class:`lib.faces.detected_face.AlignedFace` object as value.
          """
 
</s> remove     def _get_aligned_faces(self):
 </s> add     def _get_aligned_faces(self, input_sizes): </s> remove         self._aligned_faces = self._get_aligned_faces()
 </s> add         self._aligned_faces = self._get_aligned_faces(sizes) </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  </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         Parameters
        ----------
        centering: ["legacy", "face"]
            The type of centering to obtain the region of interest for. "legacy" places the nose
            in the center of the image (the original method for aligning). "face" aligns for the
            nose to be in the center of the face (top to bottom) but the center of the skull for
            left to right.

 </s> add 
        Parameters
        ----------
        input_sizes: dict
            The training image sizes in pixels for side `a` and `b` as they are saved on disk

          """ Pre-generate aligned faces as they are needed for all training functions.
  
        Parameters
        ----------
        input_sizes: dict
            The training image sizes in pixels for side `a` and `b` as they are saved on disk

          Returns
          -------
          dict
              The "a", "b" keys for each side, containing a sub-dictionary with the
              filename as key and :class:`lib.faces.detected_face.AlignedFace` object as value.
          """
keep add keep keep keep keep keep keep
 Bugfix - Warp to landmarks 
plugins/train/trainer/_base.py