                  dfl.seek(chunk_start, os.SEEK_SET)
                  if chunk_name == b"fcWp":
                      chunk = dfl.read(chunk_length + 12)
                      return pickle.loads(chunk[8:-4])
                  else:
                      dfl.seek(chunk_length+12, os.SEEK_CUR)
              print("ERROR: Couldn't find DFL alignments: {}".format(filename))
  
      @staticmethod
      def convert_dfl_alignment(dfl_alignments, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
 
</s> remove         return bool(number_alignments == 0
                    or number_alignments == number_faces)
 </s> add         return bool(number_alignments in(0, number_faces)) </s> remove                                self.verbose)
 </s> add                                self.verbose,
                               dfl=True) </s> remove             index = int(filename[filename.rindex("_") + 1:])
            original_file = "{}".format(filename[:filename.rindex("_")])
 </s> add             index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")]) </s> remove             top_left, top_right  = original_roi[0], original_roi[3]
 </s> add             top_left, top_right = original_roi[0], original_roi[3]
                dfl.seek(chunk_length+12, os.SEEK_CUR)
                  dfl.seek(chunk_start, os.SEEK_SET)
                  if chunk_name == b"fcWp":
                      chunk = dfl.read(chunk_length + 12)
                      return pickle.loads(chunk[8:-4])
                dfl.seek(chunk_length+12, os.SEEK_CUR)
                dfl.seek(chunk_length+12, os.SEEK_CUR)
              print("ERROR: Couldn't find DFL alignments: {}".format(filename))
  
      @staticmethod
      def convert_dfl_alignment(dfl_alignments, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
keep keep keep keep replace replace keep keep keep keep keep
 Alignments Tool - Fix DFL Index bug (#526)

* Alignments tool. Fix DFL Alignments index bug 
tools/lib_alignments/jobs.py