      @staticmethod
      def convert_dfl_alignment(dfl_alignments, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
          sourcefile = dfl_alignments["source_filename"]
          if not alignments.get(sourcefile, None):
              alignments[sourcefile] = list()
  
          left, top, right, bottom = dfl_alignments["source_rect"]
          alignment = {"x": left,
                       "w": right - left,
                       "y": top,
                       "h": bottom - top,
 
</s> remove     def convert_dfl_alignment(dfl_alignments, alignments):
 </s> add     def convert_dfl_alignment(dfl_alignments, f_hash, alignments): </s> remove 
        alignments[sourcefile].append(alignment)
 </s> add         logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
        alignments.setdefault(sourcefile, list()).append(alignment) </s> remove                     return pickle.loads(chunk[8:-4])
 </s> add                     retval = pickle.loads(chunk[8:-4])
                    logger.trace("Loaded DFL Alignment: (filename: '%s', alignment: %s",
                                 filename, retval)
                    return retval </s> remove         for face in self.faces.file_list_sorted:
 </s> add         for face in tqdm(self.faces.file_list_sorted, desc="Converting DFL Faces"):
      @staticmethod
      def convert_dfl_alignment(dfl_alignments, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
          sourcefile = dfl_alignments["source_filename"]



          left, top, right, bottom = dfl_alignments["source_rect"]
          alignment = {"x": left,
                       "w": right - left,
                       "y": top,
                       "h": bottom - top,
keep keep keep keep replace 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