      """ Re-extract faces from source frames based on
          Alignment data """
      def __init__(self, alignments, arguments):
          logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments)
          self.arguments = arguments
          self.alignments = alignments
          self.faces_dir = arguments.faces_dir
          self.frames = Frames(arguments.frames_dir)
          self.extracted_faces = ExtractedFaces(self.frames,
                                                self.alignments,
                                                size=arguments.size,
                                                align_eyes=arguments.align_eyes)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def process(self):
          """ Run extraction """
          logger.info("[EXTRACT FACES]")  # Tidy up cli output
 
</s> remove class Extract():
    """ Re-extract faces from source frames based on
        Alignment data """
 </s> add class Extract():  # pylint:disable=too-few-public-methods
    """ Re-extract faces from source frames based on Alignment data

    Parameters
    ----------
    alignments: :class:`tools.lib_alignments.media.AlignmentData`
        The alignments data loaded from an alignments file for this rename job
    arguments: :class:`argparse.Namespace`
        The :mod:`argparse` arguments as passed in from :mod:`tools.py`
    """ </s> remove         """ Run extraction """
 </s> add         """ Run the re-extraction from Alignments file process""" </s> remove         self.check_folder()
        self.export_faces()
 </s> add         self._check_folder()
        self._export_faces() </s> remove     def check_folder(self):
        """ Check that the faces folder doesn't pre-exist
            and create """
 </s> add     def _check_folder(self):
        """ Check that the faces folder doesn't pre-exist and create. """ </s> remove     def get_faces(self, frame):
 </s> add     def get_faces(self, frame, image=None):
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
      """ Re-extract faces from source frames based on
          Alignment data """
      def __init__(self, alignments, arguments):
          logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
        self._arguments = arguments
        self._alignments = alignments
        self._faces_dir = arguments.faces_dir
        self._frames = Frames(arguments.frames_dir)
        self._extracted_faces = ExtractedFaces(self._frames,
                                               self._alignments,
                                               size=arguments.size,
                                               align_eyes=arguments.align_eyes)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def process(self):
          """ Run extraction """
          logger.info("[EXTRACT FACES]")  # Tidy up cli output
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 lib.alignments: improve re-extraction speed by 500% 
tools/lib_alignments/jobs.py