              frame_key = "frame_fullname"
              retval_key = "frame_fullname"
  
          for item in tqdm(self.items, desc=self.output_message):
              frame = item[frame_key]
              if self.type == "faces":
                  frame, idx = self.alignments.hashes_to_frame[frame]
 
</s> remove         for item in tqdm(self.items, total=len(self.items)):
 </s> add         for item in tqdm(self.items, desc=self.output_message): </s> remove                 frame = self.alignments.get_full_frame_name(frame)
 </s> add                 frame, idx = self.alignments.hashes_to_frame[frame] </s> remove             frame_key = "frame_name"
 </s> add             frame_key = "face_hash" </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()
        logger.debug("frame_key: '%s', retval_key: '%s'", frame_key, retval_key)
              frame_key = "frame_fullname"
              retval_key = "frame_fullname"
        logger.debug("frame_key: '%s', retval_key: '%s'", frame_key, retval_key)
  
          for item in tqdm(self.items, desc=self.output_message):
              frame = item[frame_key]
              if self.type == "faces":
                  frame, idx = self.alignments.hashes_to_frame[frame]
keep add 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