      @staticmethod
      def convert_dfl_alignment(dfl_alignments, alignments):
          """ Add DFL Alignments to alignments in Faceswap format """
          if not alignments.get(sourcefile, None):
              alignments[sourcefile] = list()
  
          left, top, right, bottom = dfl_alignments["source_rect"]
          alignment = {"r": 0,
                       "x": left,
 
</s> remove     def convert_dfl_alignment(dfl_alignments, sourcefile, alignments):
 </s> add     def convert_dfl_alignment(dfl_alignments, alignments): </s> remove         frames = {item[0]: item[1]
                  for item in self.frames.values()}
 </s> add  </s> remove     def validate_dfl(self, face, frames):
        """ Validate that current file is good for dfl extraction """
        if face[1] != ".png":
            if self.verbose:
                print("{} is not a png. Skipping".format(face[0] + face[1]))
            return False
        if face[2] not in frames.keys():
            if self.verbose:
                print("{} does not have a matching source frame for {} in "
                      "frames directory. Skipping".format(face[0] + face[1],
                                                          face[2]))
            return False
        return True

 </s> add  </s> remove             self.alignments.file = os.path.join(self.frames_dir,
 </s> add             self.alignments.file = os.path.join(self.faces.folder, </s> remove             self.frames = Frames(self.frames_dir,
                                 self.verbose).items
 </s> add 
        sourcefile = dfl_alignments["source_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()
  
          left, top, right, bottom = dfl_alignments["source_rect"]
          alignment = {"r": 0,
                       "x": left,
keep keep add keep keep keep keep keep keep
 Small fix for alignments tool (#489)

* Remove frames requirement for dfl 
tools/alignments.py