              t = ( (fl[6][1]-fl[8][1]) + (fl[10][1]-fl[8][1]) ) / 2.0   
              b = fl[8][1]
              return b-t
          def calc_landmarks_face_yaw(fl):
              l = ( (fl[27][0]-fl[0][0]) + (fl[28][0]-fl[1][0]) + (fl[29][0]-fl[2][0]) ) / 3.0   
              r = ( (fl[16][0]-fl[27][0]) + (fl[15][0]-fl[28][0]) + (fl[14][0]-fl[29][0]) ) / 3.0
              return r-l
              
          import_FaceLandmarksExtractor()
          input_dir = self.arguments.input_dir
      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
 
</s> remove             return b-t
 </s> add             return b - t
 </s> remove         def calc_landmarks_face_pitch(fl): #unused
            t = ( (fl[6][1]-fl[8][1]) + (fl[10][1]-fl[8][1]) ) / 2.0   
 </s> add         def calc_landmarks_face_pitch(fl):  # unused
            t = ((fl[6][1] - fl[8][1]) + (fl[10][1] - fl[8][1])) / 2.0 </s> remove         input_dir = self.arguments.input_dir
    
 </s> add         input_dir = self.args.input_dir
 </s> remove         print ("Sorting by face-cnn similarity...")
 </s> add         print("Sorting by face-cnn similarity...") </s> remove         return sum(scores)/len(scores)
 </s> add         return sum(scores) / len(scores)
            l = ((fl[27][0] - fl[0][0]) + (fl[28][0] - fl[1][0]) + (fl[29][0] - fl[2][0])) / 3.0
            r = ((fl[16][0] - fl[27][0]) + (fl[15][0] - fl[28][0]) + (fl[14][0] - fl[29][0])) / 3.0
            return r - l

              t = ( (fl[6][1]-fl[8][1]) + (fl[10][1]-fl[8][1]) ) / 2.0   
              b = fl[8][1]
              return b-t
          def calc_landmarks_face_yaw(fl):
            l = ((fl[27][0] - fl[0][0]) + (fl[28][0] - fl[1][0]) + (fl[29][0] - fl[2][0])) / 3.0
            r = ((fl[16][0] - fl[27][0]) + (fl[15][0] - fl[28][0]) + (fl[14][0] - fl[29][0])) / 3.0
            return r - l

            l = ((fl[27][0] - fl[0][0]) + (fl[28][0] - fl[1][0]) + (fl[29][0] - fl[2][0])) / 3.0
            r = ((fl[16][0] - fl[27][0]) + (fl[15][0] - fl[28][0]) + (fl[14][0] - fl[29][0])) / 3.0
            return r - l

            l = ((fl[27][0] - fl[0][0]) + (fl[28][0] - fl[1][0]) + (fl[29][0] - fl[2][0])) / 3.0
            r = ((fl[16][0] - fl[27][0]) + (fl[15][0] - fl[28][0]) + (fl[14][0] - fl[29][0])) / 3.0
            return r - l

            l = ((fl[27][0] - fl[0][0]) + (fl[28][0] - fl[1][0]) + (fl[29][0] - fl[2][0])) / 3.0
            r = ((fl[16][0] - fl[27][0]) + (fl[15][0] - fl[28][0]) + (fl[14][0] - fl[29][0])) / 3.0
            return r - l

          import_FaceLandmarksExtractor()
          input_dir = self.arguments.input_dir
      
          img_list = []
          for x in tqdm( self.find_images(input_dir), desc="Loading", file=sys.stdout):
keep keep keep keep replace replace replace 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