  
          logger.info("Estimating yaw...")
          yaws = [self.calc_landmarks_face_yaw(mark) for mark in landmarks]
  
          return img_list
  
      def sort_hist(self):
          """ Sort by image histogram similarity """
          logger.info("Sorting by histogram similarity...")
 
</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 histogram of face similarity """
        input_dir = self.args.input_dir

 </s> add         """ Sort by image histogram similarity """ </s> remove         """ Sort by histigram of face dissimilarity """
        input_dir = self.args.input_dir

 </s> add         """ Sort by image histogram dissimilarity """
        logger.info("Sorting...")
        matched_list = list(zip(filename_list, yaws))
        img_list = sorted(matched_list, key=operator.itemgetter(1), reverse=True)
  
          logger.info("Estimating yaw...")
          yaws = [self.calc_landmarks_face_yaw(mark) for mark in landmarks]
  
        logger.info("Sorting...")
        matched_list = list(zip(filename_list, yaws))
        img_list = sorted(matched_list, key=operator.itemgetter(1), reverse=True)
          return img_list
  
      def sort_hist(self):
          """ Sort by image histogram similarity """
          logger.info("Sorting by histogram similarity...")
keep keep keep add 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