                  dfl.seek(chunk_length+12, os.SEEK_CUR)
              logger.error("Couldn't find DFL alignments: %s", filename)
  
      @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()
  
 
</s> remove         if not alignments.get(sourcefile, None):
            alignments[sourcefile] = list()

 </s> add  </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"): </s> remove         if self.alignments.file == "dfl":
            self.faces = Faces(arguments.faces_dir, dfl=True)
 </s> add         if self.alignments.file == "dfl.json":
            logger.debug("Loading DFL faces")
            self.faces = Faces(arguments.faces_dir)
        logger.debug("Initialized %s", self.__class__.__name__)
    def convert_dfl_alignment(dfl_alignments, f_hash, alignments):
                  dfl.seek(chunk_length+12, os.SEEK_CUR)
              logger.error("Couldn't find DFL alignments: %s", filename)
  
      @staticmethod
    def convert_dfl_alignment(dfl_alignments, f_hash, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
          sourcefile = dfl_alignments["source_filename"]
          if not alignments.get(sourcefile, None):
              alignments[sourcefile] = list()
  
keep keep keep keep 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