          print("Loading file list from {}".format(self.folder))
          for face in os.listdir(self.folder):
              filename = os.path.splitext(face)[0]
              file_extension = os.path.splitext(face)[1]
              index = int(filename[filename.rindex("_") + 1:])
              original_file = "{}".format(filename[:filename.rindex("_")])
              yield (filename, file_extension, original_file, index)
  
 
</s>
            if not self.valid_extension(face):
                continue
          print("Loading file list from {}".format(self.folder))
          for face in os.listdir(self.folder):
            if not self.valid_extension(face):
                continue
              filename = os.path.splitext(face)[0]
              file_extension = os.path.splitext(face)[1]
              index = int(filename[filename.rindex("_") + 1:])
              original_file = "{}".format(filename[:filename.rindex("_")])
              yield (filename, file_extension, original_file, index)
  
keep add keep keep keep keep keep keep
 Alignments Tool - File extension bugfix (#478)

* Add filename extension check for image folders
tools/alignments.py