          img_list = sorted(img_list, key=operator.itemgetter(2), reverse=True)
          return img_list
  
      def sort_face_cnn(self):
          """ Sort by dlib CNN similarity """
          input_dir = self.args.input_dir
  
          print("Sorting by face-cnn similarity...")
  
          img_list = []
 
</s> remove         """ Sort by dlib CNN dissimilarity """
 </s> add         """ Sort by CNN dissimilarity """
        self.launch_aligner() </s> remove             landmarks = face_alignment.Extract(
                input_image_bgr=cv2.imread(img),
                detector='dlib-cnn',
                verbose=True,
                input_is_predetected_face=True).landmarks
 </s> add             landmarks = self.get_landmarks(img) </s> remove                 [img, self.calc_landmarks_face_yaw(np.array(landmarks[0][1]))])
 </s> add                 [img, self.calc_landmarks_face_yaw(np.array(landmarks))]) </s> remove         """ Group into bins by dlib CNN face similarity """
 </s> add         """ Group into bins by CNN face similarity """
        """ Sort by CNN similarity """
        self.launch_aligner()
          img_list = sorted(img_list, key=operator.itemgetter(2), reverse=True)
          return img_list
  
      def sort_face_cnn(self):
        """ Sort by CNN similarity """
        self.launch_aligner()
          input_dir = self.args.input_dir
  
          print("Sorting by face-cnn similarity...")
  
          img_list = []
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 
tools/sort.py