      def process(self):
          """ Process the face renaming """
          logger.info("[RENAME FACES]")  # Tidy up cli output
          rename_count = 0
          for frame, _, _, frame_fullname in tqdm(self.alignments.yield_faces(),
                                                  desc="Renaming Faces",
                                                  total=self.alignments.frames_count):
              rename_count += self.rename_faces(frame, frame_fullname)
          logger.info("%s faces renamed", rename_count)
  
 
</s> remove             rename_count += self.rename_faces(frame, frame_fullname)
 </s> add             rename_count += self.rename_faces(frame, frame_fullname, details) </s> remove     def rename_faces(self, frame, frame_fullname):
 </s> add     def rename_faces(self, frame, frame_fullname, details): </s> remove         frame_faces = list()
        frame_faces = [(f_hash, idx)
                       for f_hash, details in self.alignments.hashes_to_frame.items()
                       for frame_name, idx in details.items()
                       if frame_name == frame_fullname]
 </s> add         frame_faces = [(x["hash"], idx) for idx, x in enumerate(details)] </s> remove         face_hashes = list(self.items.items.keys())
 </s> add         face_hashes = self.items.items </s> remove                          for frame, idx in self.alignments.hashes_to_frame[f_hash].items()]
 </s> add                          for frame, idx in hashes_to_frame[f_hash].items()]
        for frame, details, _, frame_fullname in tqdm(self.alignments.yield_faces(),
      def process(self):
          """ Process the face renaming """
          logger.info("[RENAME FACES]")  # Tidy up cli output
          rename_count = 0
        for frame, details, _, frame_fullname in tqdm(self.alignments.yield_faces(),
                                                  desc="Renaming Faces",
                                                  total=self.alignments.frames_count):
              rename_count += self.rename_faces(frame, frame_fullname)
          logger.info("%s faces renamed", rename_count)
  
keep keep keep keep replace keep keep keep keep keep
 Multiple Tools->Alignmet speed ups (#785) 
tools/lib_alignments/jobs.py