          """
          size = self._args.size if hasattr(self._args, "size") else 256
          saver = None if self._args.skip_saving_faces else ImagesSaver(self._output_dir,
                                                                        as_bytes=True)
          exception = False
  
          for phase in range(self._extractor.passes):
              if exception:
                  break
              is_final = self._extractor.final_pass
              detected_faces = {}
 
</s> remove             if exception:
                break
 </s> add  </s> remove             detected_faces = {}
 </s> add             detected_faces: Dict[str, ExtractMedia] = {} </s> remove             self._check_thread_error()
 </s> add             self._loader.check_thread_error() </s> remove         self._frame_metadata: Dict[str, Any] = {}
 </s> add         self._is_aligned = is_aligned
        self._frame_metadata: Optional["PNGHeaderSourceDict"] = None </s> remove         recognition = "vgg_face2" if arguments.identity else None
 </s> add         recognition = ("vgg_face2"
                       if arguments.identity or arguments.filter or arguments.nfilter
                       else None)
          """
          size = self._args.size if hasattr(self._args, "size") else 256
          saver = None if self._args.skip_saving_faces else ImagesSaver(self._output_dir,
                                                                        as_bytes=True)


          for phase in range(self._extractor.passes):
              if exception:
                  break
              is_final = self._extractor.final_pass
              detected_faces = {}
keep keep keep keep replace replace keep keep keep keep keep
 Update Face Filter
  - Remove old face filter
  - plugins.extract.pipeline: Expose plugins directly
  - Change `is_aligned` from plugin level to ExtractMedia level
  - Allow extract pipeline to take faceswap aligned images
  - Add ability for recognition plugins to accept aligned faces as input
  - Add face filter to recognition plugin
  - Move extractor pipeline IO ops to own class 
scripts/extract.py