  
          self.export_face = True
          self.save_interval = None
          if hasattr(self.args, "save_interval"):
              self.save_interval = self.args.save_interval
  
 
</s> remove         self.output_dir = self.faces.output_dir
 </s> add         self.post_process = PostProcess(arguments) </s> remove         self.faces = Faces(self.args)
        self.alignments = Alignments(self.args)
 </s> add         self.alignments = Alignments(self.args, True)
        self.plugins = Plugins(self.args) </s> remove         self.faces.draw_landmarks_on_face(face, image)
 </s> add         filename = faces["filename"]
        output_file = faces["output_file"]
        resized_faces = faces["resized_faces"] </s> remove         output_file = self.output_dir / Path(
            filename).stem if self.export_face else None
 </s> add         final_faces = list()
        save_queue = queue_manager.get_queue("save") </s> remove         resized_face, t_mat = self.faces.extractor.extract(
            image,
            face,
            256,
            self.faces.align_eyes)
 </s> add         for idx, face in enumerate(faces["detected_faces"]):
            if self.export_face:
                save_queue.put((filename,
                                output_file,
                                resized_faces[idx],
                                idx))
        self.verify_output = False
  
          self.export_face = True
        self.verify_output = False
          self.save_interval = None
          if hasattr(self.args, "save_interval"):
              self.save_interval = self.args.save_interval
  
keep add keep keep keep keep
 Extraction - Speed improvements (#522) (#523)

* Extraction - Speed improvements (#522)

* Initial Plugin restructure

* Detectors to plugins. Detector speed improvements

* Re-implement dlib aligner, remove models, FAN to TF. Parallel processing

* Update manual, update convert, implement parallel/serial switching

* linting + fix cuda check (setup.py). requirements update keras 2.2.4

* Add extract size option. Fix dlib hog init

* GUI: Increase tooltip width

* Update alignment tool to support new DetectedFace

* Add skip existing faces option

* Fix sort tool to new plugin structure

* remove old align plugin

* fix convert -skip faces bug

* Fix convert skipping no faces frames

* Convert - draw onto transparent layer

* Fix blur threshold bug

* fix skip_faces convert bug

* Fix training 
scripts/extract.py