  
      def group_face_cnn(self, img_list):
          print("Grouping by face-cnn similarity...")
  
          # Groups are of the form: group_num -> reference faces
          reference_groups = dict()
  
          # Bins array, where index is the group number and value is
 
</s> remove             for j in range(num_per_bin):
                bins[i].append(img_list[image_index][0])
                image_index += 1
 </s> add             for idx in range(num_per_bin):
                bins[i].append(img_list[idx][0]) </s> remove             for j in range(num_per_bin):
                bins[i].append(img_list[image_index][0])
                image_index += 1
 </s> add             for idx in range(num_per_bin):
                bins[i].append(img_list[idx][0])
        """ Group into bins by dlib CNN face similarity """
  
      def group_face_cnn(self, img_list):
        """ Group into bins by dlib CNN face similarity """
          print("Grouping by face-cnn similarity...")
  
          # Groups are of the form: group_num -> reference faces
          reference_groups = dict()
  
          # Bins array, where index is the group number and value is
keep add keep keep keep keep keep keep
 Sort tool bugfixes and linting 
tools/sort.py