          count = sum(1 for val in self.alignments.data.values() if val)
          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
          for key in tqdm(sorted(self.alignments.data.keys()),
                          desc="Compiling"):
              val = self.alignments.data[key]
              if not val:
                  continue
              # We should only be normalizing a single face, so just take
              # the first landmarks found
 
</s> remove         filename, image, idx, face = imagevars

        if self.opts.check_skipface(filename, idx):
            return image

 </s> add  </s> remove             if key not in ("bounding_box", "extract_box", "landmarks",
                           "landmarks_mesh", "image"):
 </s> add             if key not in ("bounding_box", "extract_box", "landmarks", "landmarks_mesh", "image"): </s> remove         self.check_rotated()
        self.reindex_faces()
        self.alignments.save()

    def check_rotated(self):
 </s> add         self.check_legacy()
        reindexed = self.reindex_faces()
        if reindexed:
            self.alignments.save()
        if self.faces:
            rename = Rename(self.alignments, None, self.faces)
            rename.process()

    def check_legacy(self):
        for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
          count = sum(1 for val in self.alignments.data.values() if val)
          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
        for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
        for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
              val = self.alignments.data[key]
              if not val:
                  continue
              # We should only be normalizing a single face, so just take
              # the first landmarks found
keep keep keep keep replace replace 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