      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
              d = FaceLandmarksExtractor.extract(cv2.imread(x), 'cnn', True, input_is_predetected_face=True)
              img_list.append( [x, calc_landmarks_face_yaw(np.array(d[0][1])) ] )
  
          print ("Sorting...")
          img_list = sorted(img_list, key=operator.itemgetter(1), reverse=True)
          
          return img_list
 
</s> remove         for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
 </s> add         for x in tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout): </s> remove         print ("Sorting...")
 </s> add         print("Sorting...") </s> remove         input_dir = self.arguments.input_dir
    
 </s> add         input_dir = self.args.input_dir
 </s> remove         for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
 </s> add         for x in tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout): </s> remove         print ("Sorting by face-cnn similarity...")
 </s> add         print("Sorting by face-cnn similarity...")
            img_list.append([x, calc_landmarks_face_yaw(np.array(d[0][1]))])
      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
              d = FaceLandmarksExtractor.extract(cv2.imread(x), 'cnn', True, input_is_predetected_face=True)
            img_list.append([x, calc_landmarks_face_yaw(np.array(d[0][1]))])
  
          print ("Sorting...")
          img_list = sorted(img_list, key=operator.itemgetter(1), reverse=True)
          
          return img_list
keep keep keep keep replace keep keep keep keep keep
 GUI v0.2.1b (#352)

* Code refactor

* Console Added

* Add graphing with matplotlib

* Add GUI preview support

* Improve import handling.

* Add GUI integration for tools.py (Launch tools.py with the gui command)

* Reformat to conform to PEP8.

* Add Tooltips, 

* Make panels user adjustable

* Fix convert.py Sharpen default value 
tools/sort.py