              self._output_faces.append(face)
              if len(self._output_faces) != self._faces_per_filename[filename]:
                  continue
  
              self._output_faces = []
  
              logger.trace("Final Output: (filename: '%s', image shape: %s, detected_faces: %s, "
                           "item: %s)",
 
</s> remove             logger.trace("Yielding: (filename: '%s', image: %s, detected_faces: %s)",
                         retval["filename"], retval["image"].shape, len(retval["detected_faces"]))
            yield retval
 </s> add             logger.trace("Final Output: (filename: '%s', image shape: %s, detected_faces: %s, "
                         "item: %s)",
                         output.filename, output.image_shape, output.detected_faces, output)
            yield output </s> remove             retval = dict(filename=filename, image=image, detected_faces=self._output_faces)
 </s> add  </s> remove             retval = dict(filename=filename, image=image, detected_faces=self._output_faces)
 </s> add  </s> remove             logger.trace("final output: %s", {k: v.shape if isinstance(v, np.ndarray) else v
                                              for k, v in item.items()})
            yield item
 </s> add             output = self._extract_media.pop(item["filename"])
            output.add_detected_faces(item["detected_faces"])
            logger.trace("final output: (filename: '%s', image shape: %s, detected_faces: %s, "
                         "item: %s", output.filename, output.image_shape, output.detected_faces,
                         output)
            yield output
            output = self._extract_media.pop(filename)
            output.add_detected_faces(self._output_faces)
              self._output_faces.append(face)
              if len(self._output_faces) != self._faces_per_filename[filename]:
                  continue
  
            output = self._extract_media.pop(filename)
            output.add_detected_faces(self._output_faces)
              self._output_faces = []
  
              logger.trace("Final Output: (filename: '%s', image shape: %s, detected_faces: %s, "
                           "item: %s)",
keep keep keep add keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
plugins/extract/align/_base.py