          logger.debug("Initialized %s", self.__class__.__name__)
  
      def load(self):
          """ Load the faces from the alignments file, convert to
          :class:`~lib.faces_detect.DetectedFace`. objects and add to :attr:`_frame_faces`. """
          for key in sorted(self._alignments.data):
              this_frame_faces = []
              for item in self._alignments.data[key]["faces"]:
                  face = DetectedFace()
                  face.from_alignment(item, with_thumb=True)
 
</s> remove         """ Load the alignments and convert to :class:`lib.faces_detect.DetectedFace` objects.
 </s> add         """ Load the alignments and convert to :class:`lib.align.DetectedFace` objects. </s> remove         Returns
        -------
        dict
            For keys "a" and "b" values are a dict with the key being the sha1 hash of the face
            and the value being the corresponding :class:`lib.faces_detect.DetectedFace` object.
 </s> add         Assign the alignments file version to :attr:`_alignments_version` and the converted
        detected faces to :attr:`_detected_faces` for each side </s> remove         """ Load the faces as :class:`~lib.faces_detect.DetectedFace` objects from the alignments
 </s> add         """ Load the faces as :class:`~lib.align.DetectedFace` objects from the alignments </s> remove     def process(self):
        """ Run reformat """
        logger.info("[REFORMAT DFL ALIGNMENTS]")  # Tidy up cli output
        self.alignments.data_from_dfl(self.load_dfl(), self.faces.folder)
        self.alignments.save()

    def load_dfl(self):
        """ Load alignments from DeepFaceLab and format for Faceswap """
        alignments = dict()
        for face in tqdm(self.faces.file_list_sorted, desc="Converting DFL Faces"):
            if face["face_extension"] not in (".png", ".jpg"):
                logger.verbose("'%s' is not a png or jpeg. Skipping", face["face_fullname"])
                continue
            f_hash = face["face_hash"]
            fullpath = os.path.join(self.faces.folder, face["face_fullname"])
            dfl = self.get_dfl_alignment(fullpath)

            if not dfl:
                continue

            self.convert_dfl_alignment(dfl, f_hash, alignments)
        return alignments
 </s> add     def _set_output(self):
        """ Set the output folder path. </s> remove         self.alignments = alignments
        self.faces = faces if faces else Faces(arguments.faces_dir)
 </s> add         self._alignments = alignments
        self._faces = faces if faces else Faces(arguments.faces_dir)
        :class:`~lib.align.DetectedFace`. objects and add to :attr:`_frame_faces`. """
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def load(self):
          """ Load the faces from the alignments file, convert to
        :class:`~lib.align.DetectedFace`. objects and add to :attr:`_frame_faces`. """
          for key in sorted(self._alignments.data):
              this_frame_faces = []
              for item in self._alignments.data[key]["faces"]:
                  face = DetectedFace()
                  face.from_alignment(item, with_thumb=True)
keep keep keep keep replace keep keep keep keep keep
 Extract - Increase area and move centering (#1095)

* Extract
  - Implement aligner re-feeding
  - Add extract type to pipeline.ExtractMedia
  - Add pose annotation to debug
* Convert
  - implement centering
  - remove usage of feed and reference face properties
  - Remove distributed option from convert
  - Force update of alignments file on legacy receive
* Train
  - Resize preview image to model output size
  - Force legacy centering if centering does not exist in model's state file
  - Enable training on legacy face sets

* Alignments Tool
  - Update draw to include head/pose
  - Remove DFL drop + linting
  - Remove remove-frames job
  - remove align-eyes option
  - Update legacy masks to new extract type
  - Exit if attempting to merge version 1.0 alignments files with version 2.0 alignments files
  - Re-generate thumbnails on legacy upgrade
* Mask Tool
  - Update for new extract + bugfix full frame
* Manual Tool
  - Update to new extraction method
   - Disable legacy alignments,
   - extract box bugfix
   - extract faces - size to 512 and center on head
* Preview Tool
  - Display based on model centering
* Sort Tool
  - Use alignments for sort by face

* lib.aligner
  - Add Pose Class
  - Add AlignedFace Class
  - center _MEAN_FACE on x
  - Add meta information with versioning to alignments file
  - lib.aligner.get_align_matrix to use landmarks not face
  - Refactor aligned faces in lib.faces_detect
* lib.logger
  - larger file log padding
* lib.config
  - Fix global changeable_items
* lib.face_filter
  - Use new extracted face images
* lib.image
  - bump thumbnail default size to 96px 
tools/manual/detected_faces.py