          self._saver = None
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def process(self):
          """ Run the re-extraction from Alignments file process"""
          logger.info("[EXTRACT FACES]")  # Tidy up cli output
          self._check_folder()
          if self._is_legacy:
              self._legacy_check()
 
</s> remove         self._frames = Frames(arguments.frames_dir)
 </s> add         self._frames = Frames(arguments.frames_dir, self._get_count()) </s> remove     def __init__(self, folder):
 </s> add     def __init__(self, folder, count=None): </s> remove         loader = ImagesLoader(self.folder, queue_size=32)
 </s> add         loader = ImagesLoader(self.folder, queue_size=32, count=self._count) </s> remove         self._count = None
 </s> add         self._count = count
    def _get_count(self):
        """ If the alignments file has been run through the manual tool, then it will hold video
        meta information, meaning that the count of frames in the alignment file can be relied
        on to be accurate.

        Returns
        -------
        int or ``None``
        For video input which contain video meta-data in the alignments file then the count of
        frames is returned. In all other cases ``None`` is returned
        """
        has_meta = all(val is not None for val in self._alignments.video_meta_data.values())
        retval = len(self._alignments.video_meta_data["pts_time"]) if has_meta else None
        logger.debug("Frame count from alignments file: (has_meta: %s, %s", has_meta, retval)
        return retval

          self._saver = None
          logger.debug("Initialized %s", self.__class__.__name__)
  
    def _get_count(self):
        """ If the alignments file has been run through the manual tool, then it will hold video
        meta information, meaning that the count of frames in the alignment file can be relied
        on to be accurate.

        Returns
        -------
        int or ``None``
        For video input which contain video meta-data in the alignments file then the count of
        frames is returned. In all other cases ``None`` is returned
        """
        has_meta = all(val is not None for val in self._alignments.video_meta_data.values())
        retval = len(self._alignments.video_meta_data["pts_time"]) if has_meta else None
        logger.debug("Frame count from alignments file: (has_meta: %s, %s", has_meta, retval)
        return retval

      def process(self):
          """ Run the re-extraction from Alignments file process"""
          logger.info("[EXTRACT FACES]")  # Tidy up cli output
          self._check_folder()
          if self._is_legacy:
              self._legacy_check()
keep keep add keep keep keep keep keep keep
 alignments tool - Don't re-analyze video if metadata in alignments 
tools/alignments/jobs.py