  
          faces_count = len(faces["detected_faces"])
          if faces_count == 0:
              logger.verbose("No faces were detected in image: %s",
                             os.path.basename(faces["filename"]))
  
          if not self._verify_output and faces_count > 1:
              self._verify_output = True
  
      def _output_faces(self, saver, faces):
 
</s> remove         faces_count = len(faces["detected_faces"])
 </s> add         faces_count = len(extract_media.detected_faces) </s> remove         self._post_process.do_actions(faces)
 </s> add         self._post_process.do_actions(extract_media)
        extract_media.remove_image() </s> remove     def _output_faces(self, saver, faces):
 </s> add     def _output_faces(self, saver, extract_media): </s> remove         for face in faces["detected_faces"]:
            face.load_aligned(faces["image"], size=size)
 </s> add         for face in extract_media.detected_faces:
            face.load_aligned(extract_media.image, size=size) </s> remove                     del faces["image"]
                    # cache detected faces for next run
                    detected_faces[faces["filename"]] = faces
 </s> add                     extract_media.remove_image()
                    # cache extract_media for next run
                    detected_faces[extract_media.filename] = extract_media
                           os.path.basename(extract_media.filename))
  
          faces_count = len(faces["detected_faces"])
          if faces_count == 0:
              logger.verbose("No faces were detected in image: %s",
                           os.path.basename(extract_media.filename))
  
          if not self._verify_output and faces_count > 1:
              self._verify_output = True
  
      def _output_faces(self, saver, faces):
keep keep keep keep replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
scripts/extract.py