          """
          logger.info("Sorting and checking faces...")
          aln_sorted: Dict[str, Dict[str, List["AlignmentFileDict"]]] = {}
          for fname, frames in alignments.items():
              this_file: Dict[str, List["AlignmentFileDict"]] = {}
              for frame in tqdm(sorted(frames), desc=f"Sorting {fname}", leave=False):
                  this_file[frame] = []
                  for real_idx, (f_id, almt, f_path, f_src) in enumerate(sorted(frames[frame],
                                                                                key=itemgetter(0))):
                      if real_idx != f_id:
 
</s> remove                 this_file[frame] = []
 </s> add                 this_file[frame] = dict(video_meta={}, faces=[]) </s> remove         aln_sorted: Dict[str, Dict[str, List["AlignmentFileDict"]]] = {}
 </s> add         aln_sorted: Dict[str, Dict[str, "AlignmentDict"]] = {} </s> remove                     this_file[frame].append(almt)
 </s> add                     this_file[frame]["faces"].append(almt) </s> remove         for filename, meta in tqdm(read_image_meta_batch(self._filelist),
 </s> add         filelist = cast(List[Tuple[str, "PNGHeaderDict"]], self._faces.file_list_sorted)
        for filename, meta in tqdm(filelist, </s> remove                                    total=len(self._filelist),
 </s> add                                    total=len(filelist),
            this_file: Dict[str, "AlignmentDict"] = {}
          """
          logger.info("Sorting and checking faces...")
          aln_sorted: Dict[str, Dict[str, List["AlignmentFileDict"]]] = {}
          for fname, frames in alignments.items():
            this_file: Dict[str, "AlignmentDict"] = {}
              for frame in tqdm(sorted(frames), desc=f"Sorting {fname}", leave=False):
                  this_file[frame] = []
                  for real_idx, (f_id, almt, f_path, f_src) in enumerate(sorted(frames[frame],
                                                                                key=itemgetter(0))):
                      if real_idx != f_id:
keep keep keep keep replace keep keep keep keep keep
 alignments tool - Remove-face - Minor update 
tools/alignments/jobs_faces.py