      def get_faces_in_frame(self, frame, update=False):
          """ Return the faces for the selected frame """
          logger.trace("frame: '%s', update: %s", frame, update)
          if self.current_frame != frame or update:
              self.get_faces(frame)
          return self.faces
  
      def get_roi_size_for_frame(self, frame):
          """ Return the size of the original extract box for
              the selected frame """
 
</s> remove     def get_faces_in_frame(self, frame, update=False):
 </s> add     def get_faces_in_frame(self, frame, update=False, image=None): </s> remove     def select_valid_faces(self, frame):
        """ Return valid faces for extraction """
        faces = self.extracted_faces.get_faces_in_frame(frame)
        if not self.arguments.large:
 </s> add     def _select_valid_faces(self, frame, image):
        """ Return the aligned faces from a frame that meet the selection criteria,

        Parameters
        ----------
        frame: str
            The filename (without the full path) of the current frame
        image: :class:`numpy.ndarray`
            The full frame that faces are to be extracted from

        Returns
        -------
        list:
            List of valid :class:`lib,faces_detect.DetectedFace` objects
        """
        faces = self._extracted_faces.get_faces_in_frame(frame, image=image)
        if not self._arguments.large: </s> remove     def get_faces(self, frame):
 </s> add     def get_faces(self, frame, image=None): </s> remove         image = self.frames.load_image(frame)
        self.faces = [self.extract_one_face(alignment, image.copy()) for alignment in alignments]
 </s> add         image = self.frames.load_image(frame) if image is None else image
        self.faces = [self.extract_one_face(alignment, image) for alignment in alignments] </s> remove     def export_faces(self):
        """ Export the faces """
 </s> add     def _export_faces(self):
        """ Export the faces to the output folder and update the alignments file with
        new hashes. """
            self.get_faces(frame, image=image)
      def get_faces_in_frame(self, frame, update=False):
          """ Return the faces for the selected frame """
          logger.trace("frame: '%s', update: %s", frame, update)
          if self.current_frame != frame or update:
            self.get_faces(frame, image=image)
          return self.faces
  
      def get_roi_size_for_frame(self, frame):
          """ Return the size of the original extract box for
              the selected frame """
keep keep keep keep replace keep keep keep keep keep
 lib.alignments: improve re-extraction speed by 500% 
tools/lib_alignments/media.py