          alignments = dict()
          frames = {item[0]: item[1]
                    for item in self.frames.values()}
          for face in self.faces.file_list_sorted:
              if not self.validate_dfl(face, frames):
                  continue
  
              fullpath = os.path.join(self.faces.folder, face[0] + face[1])
              dfl = self.get_dfl_alignment(fullpath)
  
 
</s> remove         frames = {item[0]: item[1]
                  for item in self.frames.values()}
 </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) </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,
            if face[1] != ".png":
                if self.verbose:
                    print("{} is not a png. "
                          "Skipping".format(face[0] + face[1]))
          alignments = dict()
          frames = {item[0]: item[1]
                    for item in self.frames.values()}
          for face in self.faces.file_list_sorted:
            if face[1] != ".png":
                if self.verbose:
                    print("{} is not a png. "
                          "Skipping".format(face[0] + face[1]))
                  continue
  
              fullpath = os.path.join(self.faces.folder, face[0] + face[1])
              dfl = self.get_dfl_alignment(fullpath)
  
keep keep keep keep replace keep keep keep keep keep
 Small fix for alignments tool (#489)

* Remove frames requirement for dfl 
tools/alignments.py