      def set_destination_serializer(self):
          """ set the destination serializer """
          self.serializer = Serializer.get_serializer(self.destination_format)
  
      def load_alignments(self):
          """ Read the alignments data from the correct format """
          print("Loading alignments from {}".format(self.alignments_file))
          with open(self.alignments_file, self.serializer.roptions) as align:
              alignments = self.serializer.unmarshal(align.read())
          return alignments
 
</s> remove         self.serializer = Serializer.get_serializer(self.destination_format)
 </s> add         self.serializer = Serializer.get_serializer(self.dst_format) </s> remove         print("Loading alignments from {}".format(self.alignments_file))
        with open(self.alignments_file, self.serializer.roptions) as align:
 </s> add         print("Loading alignments from {}".format(self.file))
        with open(self.file, self.serializer.roptions) as align: </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         dst = os.path.splitext(self.alignments_file)[0]
 </s> add         dst = os.path.splitext(self.file)[0] </s> remove class RemoveAlignments(object):
 </s> add class RemoveAlignments():
    def load(self):
      def set_destination_serializer(self):
          """ set the destination serializer """
          self.serializer = Serializer.get_serializer(self.destination_format)
  
    def load(self):
          """ Read the alignments data from the correct format """
          print("Loading alignments from {}".format(self.alignments_file))
          with open(self.alignments_file, self.serializer.roptions) as align:
              alignments = self.serializer.unmarshal(align.read())
          return alignments
keep keep keep keep replace keep keep keep keep keep
 Alignments tool - Import from DeepFaceLab (#487)

* Import alignments from DeepFaceLab 
tools/alignments.py