          img_list = images[indices]
          return img_list
  
      def sort_face_cnn(self):
          """ Sort by CNN similarity """
          self.launch_aligner()
          input_dir = self.args.input_dir
  
          logger.info("Sorting by face-cnn similarity...")
          img_list = []
          for img in tqdm(self.find_images(input_dir),
                          desc="Loading",
 
</s> remove         logger.info("Sorting by face-cnn similarity...")
        img_list = []
        for img in tqdm(self.find_images(input_dir),
                        desc="Loading",
                        file=sys.stdout):
            landmarks = self.get_landmarks(img)
            img_list.append([img, np.array(landmarks)
                             if landmarks
                             else np.zeros((68, 2))])

        queue_manager.terminate_queues()
 </s> add         logger.info("Comparing landmarks and sorting...") </s> remove         img_list = images[indices]
 </s> add         img_list = np.array(filename_list)[indices] </s> remove         """ Sort by CNN dissimilarity """
        self.launch_aligner()
        input_dir = self.args.input_dir

        logger.info("Sorting by face-cnn dissimilarity...")

        img_list = []
        for img in tqdm(self.find_images(input_dir),
                        desc="Loading",
                        file=sys.stdout):
            landmarks = self.get_landmarks(img)
            img_list.append([img, np.array(landmarks)
                             if landmarks
                             else np.zeros((68, 2)), 0])
 </s> add         """ Sort by landmark dissimilarity """
        logger.info("Sorting by landmark dissimilarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        scores = np.zeros(len(filename_list), dtype='float32')
        img_list = list(list(items) for items in zip(filename_list, landmarks, scores)) </s> remove         img_list = []
        for img in tqdm(self.find_images(input_dir),
                        desc="Loading",
                        file=sys.stdout):
            landmarks = self.get_landmarks(img)
            img_list.append(
                [img, self.calc_landmarks_face_yaw(np.array(landmarks))])

        logger.info("Sorting by face-yaw...")
        img_list = sorted(img_list, key=operator.itemgetter(1), reverse=True)
 </s> add         logger.info("Estimating yaw...")
        yaws = [self.calc_landmarks_face_yaw(mark) for mark in landmarks] </s> remove         """ Sort by yaw of face """
        self.launch_aligner()
        input_dir = self.args.input_dir
 </s> add         """ Sort by estimated face yaw angle """
        logger.info("Sorting by estimated face yaw angle..")
        filename_list, image_list, landmarks = self._get_landmarks()
        """ Sort by landmark similarity """
        logger.info("Sorting by landmark similarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        img_list = list(zip(filename_list, landmarks))
          img_list = images[indices]
          return img_list
  
      def sort_face_cnn(self):
        """ Sort by landmark similarity """
        logger.info("Sorting by landmark similarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        img_list = list(zip(filename_list, landmarks))
        """ Sort by landmark similarity """
        logger.info("Sorting by landmark similarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        img_list = list(zip(filename_list, landmarks))
        """ Sort by landmark similarity """
        logger.info("Sorting by landmark similarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        img_list = list(zip(filename_list, landmarks))
  
          logger.info("Sorting by face-cnn similarity...")
          img_list = []
          for img in tqdm(self.find_images(input_dir),
                          desc="Loading",
keep keep keep keep replace replace replace keep keep keep keep keep
 ENHANCEMENT: Sort image multi-threading and code clarity (#912)

* Use multi-threaded loading

* fast reload

* remove landmark stub

* saves

* correct face sort

* pep8 
tools/sort.py