              legacy.process()
  
          logger.info("[REMOVE ALIGNMENTS DATA]")  # Tidy up cli output
          del_count = 0
  
          if self.type == "frames":
              logger.debug("Removing Frames")
              for frame in tqdm(list(item[3] for item in self.alignments.yield_faces()),
                                desc="Removing Frames",
                                total=self.alignments.frames_count):
 
</s> remove             iterator = list(item[3] for item in iterator())

        for item in tqdm(iterator() if self.type == "faces" else iterator,
                         desc="Processing alignments file",
                         total=self.alignments.frames_count):
            task = getattr(self, "remove_{}".format(self.type))
            del_count += task(item)
 </s> add             logger.debug("Removing Frames")
            for frame in tqdm(list(item[3] for item in self.alignments.yield_faces()),
                              desc="Removing Frames",
                              total=self.alignments.frames_count):
                del_count += task(frame)
        else:
            logger.debug("Removing Faces")
            del_count = task() </s> remove         iterator = self.alignments.yield_faces
 </s> add  </s> remove         self.extracted_faces = ExtractedFaces(
            self.frames,
            self.alignments,
            align_eyes=self.arguments.align_eyes)
 </s> add         self.extracted_faces = ExtractedFaces(self.frames, self.alignments,
                                              align_eyes=self.arguments.align_eyes) </s> remove         self.extracted_faces = ExtractedFaces(self.frames,
                                              self.alignments,
 </s> add         self.extracted_faces = ExtractedFaces(self.frames, self.alignments,
        task = getattr(self, "remove_{}".format(self.type))
              legacy.process()
  
          logger.info("[REMOVE ALIGNMENTS DATA]")  # Tidy up cli output
          del_count = 0
        task = getattr(self, "remove_{}".format(self.type))
  
          if self.type == "frames":
              logger.debug("Removing Frames")
              for frame in tqdm(list(item[3] for item in self.alignments.yield_faces()),
                                desc="Removing Frames",
                                total=self.alignments.frames_count):
keep keep keep add keep keep keep keep keep keep
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/jobs.py