              and create """
          err = None
          if not self.faces_dir:
              err = "ERROR: Output faces folder not provided."
          if os.path.isdir(self.faces_dir):
              err = "ERROR: Folder already exists at {}".format(self.faces_dir)
          if err:
              print(err)
              exit(0)
          if self.verbose:
 
</s> remove         if not self.folder or not os.path.isdir(self.folder):
            print("ERROR: The folder {} could not "
                  "be found".format(self.folder))
 </s> add         err = None
        loadtype = self.__class__.__name__
        if not self.folder:
            err = "ERROR: A {} folder must be specified".format(loadtype)
        elif not os.path.isdir(self.folder):
            err = ("ERROR: The {} folder {} could not be "
                   "found".format(loadtype, self.folder))
        if err:
            print(err) </s> remove         if not os.path.isfile(self.alignments_file):
 </s> add         if os.path.split(self.file.lower())[1] == "dfl":
            self.file = "dfl"
        if self.file.lower() == "dfl":
            print("Using extracted pngs for alignments")
            return
        if not os.path.isfile(self.file): </s> remove             print("Alignments file exists at {}".format(self.alignments_file))
 </s> add             print("Alignments file exists at {}".format(self.file))
        return

    def get_source_format(self):
        """ Get the source alignments format """
        if self.file.lower() == "dfl":
            return "dfl"
        return os.path.splitext(self.file)[1].lower() </s> remove                   "found at: {}".format(self.alignments_file))
 </s> add                   "found at: {}".format(self.file)) </s> remove         elif self.alignments_format in extensions.keys():
            dst_fmt = extensions[self.alignments_format]
 </s> add         elif self.src_format == "dfl":
            dst_fmt = "json"
        elif self.src_format in extensions.keys():
            dst_fmt = extensions[self.src_format]
        elif os.path.isdir(self.faces_dir):
              and create """
          err = None
          if not self.faces_dir:
              err = "ERROR: Output faces folder not provided."
        elif os.path.isdir(self.faces_dir):
              err = "ERROR: Folder already exists at {}".format(self.faces_dir)
          if err:
              print(err)
              exit(0)
          if self.verbose:
keep keep keep keep replace keep keep keep keep keep
 Alignments tool - Import from DeepFaceLab (#487)

* Import alignments from DeepFaceLab 
tools/alignments.py