  
          print("Grouping by blur...")
          bins = [[] for _ in range(num_bins)]
          for i in range(num_bins):
              for idx in range(num_per_bin):
                  bins[i].append(img_list[idx][0])
  
          # If remainder is 0, nothing gets added to the last bin.
          for i in range(1, remainder + 1):
              bins[-1].append(img_list[-i][0])
 
</s> remove             for idx in range(num_per_bin):
 </s> add             for _ in range(num_per_bin):
            for _ in range(num_per_bin):
  
          print("Grouping by blur...")
          bins = [[] for _ in range(num_bins)]
          for i in range(num_bins):
            for _ in range(num_per_bin):
                  bins[i].append(img_list[idx][0])
  
          # If remainder is 0, nothing gets added to the last bin.
          for i in range(1, remainder + 1):
              bins[-1].append(img_list[-i][0])
keep keep keep keep replace keep keep keep keep keep
 fix group_blur and group_face_yaw (#479) 
tools/sort.py