          return 1
  
      def remove_faces(self):
          """ Process to remove faces from an alignments file """
          face_hashes = list(self.items.items.keys())
          if not face_hashes:
              logger.error("No face hashes. This would remove all faces from your alignments file.")
              return 0
          pre_face_count = self.alignments.faces_count
          self.alignments.filter_hashes(face_hashes, filter_out=False)
 
</s> remove     def remove_alignment(self, item):
        """ Remove the alignment from the alignments file """
        del_count = 0
        frame_name, alignments, number_alignments = item[:3]
        for idx in self.alignments.yield_original_index_reverse(alignments, number_alignments):
            face_indexes = self.items.items.get(frame_name, [-1])
            if idx not in face_indexes:
                del alignments[idx]
                self.removed.add(frame_name)
                logger.verbose("Removed alignment data for image: '%s' index: %s",
                               frame_name, str(idx))
                del_count += 1
            else:
                logger.trace("Not removing alignment data for image: '%s' index: %s",
                             frame_name, str(idx))
        return del_count

 </s> add  </s> remove         exclude_filetypes = ["yaml", "yml", "p", "json", "txt"]
 </s> add         exclude_filetypes = set(["yaml", "yml", "p", "json", "txt"]) </s> remove             if not self.alignments.hashes_to_frame.get(f_hash, None):
 </s> add             if f_hash not in hashes_to_frame: </s> remove             retval = list(Frames(arguments.frames_dir).items.keys())
 </s> add             retval = Frames(arguments.frames_dir).items
        face_hashes = self.items.items
          return 1
  
      def remove_faces(self):
          """ Process to remove faces from an alignments file """
        face_hashes = self.items.items
          if not face_hashes:
              logger.error("No face hashes. This would remove all faces from your alignments file.")
              return 0
          pre_face_count = self.alignments.faces_count
          self.alignments.filter_hashes(face_hashes, filter_out=False)
keep keep keep keep replace keep keep keep keep keep
 Multiple Tools->Alignmet speed ups (#785) 
tools/lib_alignments/jobs.py