          img_list = sorted(img_list, key=operator.itemgetter(2), reverse=True)
          return img_list
  
      def sort_face_cnn(self):
  
          input_dir = self.args.input_dir
  
          print("Sorting by face-cnn similarity...")
  
          img_list = []
 
</s> remove             img_list.append([x,
                             self.calc_landmarks_face_yaw(np.array(d[0][1]))])
 </s> add             img_list.append(
                [img, self.calc_landmarks_face_yaw(np.array(landmarks[0][1]))]) </s> remove         img_list = [[x, face_recognition.face_encodings(cv2.imread(x))]
                    for x in
 </s> add         img_list = [[img, face_recognition.face_encodings(cv2.imread(img))]
                    for img in </s> remove         img_list = [[x, self.estimate_blur(cv2.imread(x))]
                    for x in
 </s> add         img_list = [[img, self.estimate_blur(cv2.imread(img))]
                    for img in
        """ Sort by dlib CNN similarity """
          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 = []
keep keep keep keep replace keep keep keep keep keep
 Merge staging to Master (#470)

* DLib scaling amends (#461)

* Scaling area fix and rework of frames and bounding boxes

* Update DLib scaling and initialization

* Extract - Detector reinitialization bugfix

* Slight OriginaHightRes Model re-factoring (#464)

* Model re-factoring, might fix red screen of death on multi-gpu configurations

* Limited trainer support for various INPUT_SIZE

* Auto Extraction multiprocess bugfix

* Sort tool bugfixes and linting 
tools/sort.py