              mask_type=args.mask_type,
              erosion_kernel_size=args.erosion_kernel_size,
              match_histogram=args.match_histogram,
              smooth_mask=args.smooth_mask,
              avg_color_adjust=args.avg_color_adjust)
  
          return converter
  
      def prepare_images(self):
          """ Prepare the images for conversion """
 
</s> remove         for filename in tqdm(self.images.input_images, file=sys.stdout):
            if not self.check_alignments(filename):
 </s> add         for filename in tqdm(self.images.input_images,
                             total=self.images.images_found,
                             file=sys.stdout):

            if (self.args.discard_frames and
                    self.opts.check_skipframe(filename) == "discard"): </s> remove         self.faces = Faces(self.args)
        self.alignments = Alignments(self.args)
 </s> add         self.alignments = Alignments(self.args, False)

        # Legacy rotation conversion
        Rotate(self.alignments, self.args.verbose, self.images.input_images)

        self.post_process = PostProcess(arguments)
        self.verify_output = False </s> remove                        "skipping".format(os.path.basename(filename)))
 </s> add                        "skipping".format(frame)) </s> remove         self.write_alignments()
        images, faces = Utils.finalize(self.images.images_found,
                                       self.faces.num_faces_detected,
                                       self.faces.verify_output)
        self.images.images_found = images
        self.faces.num_faces_detected = faces
 </s> add     def load_images(self):
        """ Load the images """
        load_queue = queue_manager.get_queue("load")
        for filename, image in self.images.load():
            imagename = os.path.basename(filename)
            if imagename in self.alignments.data.keys():
                continue
            load_queue.put((filename, image))
        load_queue.put("EOF") </s> remove         return get_image_paths(self.args.output_dir)
 </s> add     def faces_count(self):
        """ Return current faces count """
        return sum(len(faces) for faces in self.data.values())
            avg_color_adjust=args.avg_color_adjust,
            draw_transparent=args.draw_transparent)
              mask_type=args.mask_type,
              erosion_kernel_size=args.erosion_kernel_size,
              match_histogram=args.match_histogram,
              smooth_mask=args.smooth_mask,
            avg_color_adjust=args.avg_color_adjust,
            draw_transparent=args.draw_transparent)
  
          return converter
  
      def prepare_images(self):
          """ Prepare the images for conversion """
keep keep keep keep replace keep 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/convert.py