              else:
                  faces[original_file].append(index)
          return faces
  
  
  class Frames(MediaLoader):
      """ Object to hold the frames that are to be checked against """
  
      def process_folder(self):
          """ Iterate through the frames dir pulling the base filename """
 
</s> remove         number_faces = len(self.faces.items.get(image_name, []))
 </s> add         number_faces = len(self.faces.items.get(image_name, None)) </s> remove         self.file_list_sorted = sorted([item
                                        for item in self.process_folder()])
 </s> add         self.file_list_sorted = self.sorted_items()
    def sorted_items(self):
        """ Return the items sorted by filename then index """
        return sorted([item for item in self.process_folder()],
                      key=lambda x: (x[2], x[3]))

              else:
                  faces[original_file].append(index)
          return faces
  
    def sorted_items(self):
        """ Return the items sorted by filename then index """
        return sorted([item for item in self.process_folder()],
                      key=lambda x: (x[2], x[3]))

  
  class Frames(MediaLoader):
      """ Object to hold the frames that are to be checked against """
  
      def process_folder(self):
          """ Iterate through the frames dir pulling the base filename """
keep keep keep add keep keep keep keep keep keep
 Bugfix for renaming of faces (#485)

* Bugfix renaming of faces 
tools/alignments.py