              The output dictionary from :class:`plugins.extract.Pipeline.Extractor`
          """
          logger.trace("Outputting faces for %s", faces["filename"])
          final_faces = list()
          filename, extension = os.path.splitext(os.path.basename(faces["filename"]))
          for idx, face in enumerate(faces["detected_faces"]):
              output_filename = "{}_{}{}".format(filename, str(idx), extension)
              face.hash, image = encode_image_with_hash(face.aligned_face, extension)
  
              saver.save(output_filename, image)
              final_faces.append(face.to_alignment())
 
</s> remove         logger.trace("Outputting faces for %s", faces["filename"])
 </s> add         logger.trace("Outputting faces for %s", extract_media.filename) </s> remove         faces: dict
            The output dictionary from :class:`plugins.extract.Pipeline.Extractor`
 </s> add         extract_media: :class:`~plugins.extract.pipeline.ExtractMedia`
            The output from :class:`~plugins.extract.Pipeline.Extractor` </s> remove         self._alignments.data[os.path.basename(faces["filename"])] = final_faces
 </s> add         self._alignments.data[os.path.basename(extract_media.filename)] = final_faces
        del extract_media </s> remove         frame = os.path.splitext(os.path.basename(output_item["filename"]))[0]
        for idx, face in enumerate(output_item["detected_faces"]):
 </s> add         frame = os.path.splitext(os.path.basename(extract_media.filename))[0]
        for idx, face in enumerate(extract_media.detected_faces): </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)
        filename, extension = os.path.splitext(os.path.basename(extract_media.filename))
        for idx, face in enumerate(extract_media.detected_faces):
              The output dictionary from :class:`plugins.extract.Pipeline.Extractor`
          """
          logger.trace("Outputting faces for %s", faces["filename"])
          final_faces = list()
        filename, extension = os.path.splitext(os.path.basename(extract_media.filename))
        for idx, face in enumerate(extract_media.detected_faces):
        filename, extension = os.path.splitext(os.path.basename(extract_media.filename))
        for idx, face in enumerate(extract_media.detected_faces):
              output_filename = "{}_{}{}".format(filename, str(idx), extension)
              face.hash, image = encode_image_with_hash(face.aligned_face, extension)
  
              saver.save(output_filename, image)
              final_faces.append(face.to_alignment())
keep keep keep keep replace replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
scripts/extract.py