                      dfl.seek(chunk_length+12, os.SEEK_CUR)
              print("ERROR: Couldn't find DFL alignments: {}".format(filename))
  
      @staticmethod
      def convert_dfl_alignment(dfl_alignments, sourcefile, 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"]
 
</s> remove         frames = {item[0]: item[1]
                  for item in self.frames.values()}
 </s> add  </s> remove                 return
 </s> add                 return None </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             sourcefile = face[2] + frames[face[2]]
            self.convert_dfl_alignment(dfl, sourcefile, alignments)
 </s> add             self.convert_dfl_alignment(dfl, alignments)
    def convert_dfl_alignment(dfl_alignments, alignments):
                      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 """
          if not alignments.get(sourcefile, None):
              alignments[sourcefile] = list()
  
          left, top, right, bottom = dfl_alignments["source_rect"]
keep keep keep keep replace keep keep keep keep keep
 Small fix for alignments tool (#489)

* Remove frames requirement for dfl 
tools/alignments.py