  
      def process(self):
          """ Run reformat """
          print("\n[REFORMAT ALIGNMENTS]")  # Tidy up cli output
          if self.alignments.src_format == "dfl":
              self.alignments.alignments = self.load_dfl()
              self.alignments.file = os.path.join(self.faces.folder,
                                                  "alignments.json")
          self.alignments.save_alignments()
  
      def load_dfl(self):
          """ Load alignments from DeepFaceLab and format for Faceswap """
          alignments = dict()
          for face in self.faces.file_list_sorted:
 
</s> remove         if self.alignments.src_format == "dfl":
 </s> add         if self.alignments.file == "dfl": </s> remove         rotate.process()
 </s> add         legacy.process() </s> remove         rotate = Rotate(self.alignments, self.arguments,
 </s> add         legacy = Legacy(self.alignments, self.arguments, </s> remove         rotated = self.alignments.get_rotated()
        if not rotated and self.child_process:
 </s> add         no_dims = self.alignments.get_legacy_no_dims()
        rotated = self.alignments.get_legacy_rotation()
        if self.child_process and not rotated and not no_dims: </s> remove         print("\n[ROTATE LANDMARKS]")  # Tidy up cli output
        if self.child_process:
            print("Legacy rotated frames found. Rotating landmarks")
        self.rotate_landmarks(rotated)
        if not self.child_process:
            self.alignments.save_alignments()
 </s> add         print("\n[UPDATE LEGACY LANDMARKS]")  # Tidy up cli output

        if no_dims:
            if self.child_process:
                print("Legacy landmarks found. Adding frame dimensions...")
            self.add_dimensions(no_dims)

        if rotated:
            if self.child_process:
                print("Legacy rotated frames found. Rotating landmarks")
            self.rotate_landmarks(rotated)

        self.alignments.save()

    def add_dimensions(self, no_dims):
        """ Add width and height of original frame to alignments """
        for no_dim in tqdm(no_dims, desc="Adding Frame Dimensions"):
            if no_dim not in self.frames.items.keys():
                continue
            dims = self.frames.load_image(no_dim).shape[:2]
            self.alignments.add_dimensions(no_dim, dims)
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
  
      def process(self):
          """ Run reformat """
          print("\n[REFORMAT ALIGNMENTS]")  # Tidy up cli output
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
        if self.alignments.file == "dfl":
            self.alignments.data = self.load_dfl()
            self.alignments.file = self.alignments.get_location(
                self.faces.folder,
                "alignments")
        self.alignments.save()
  
      def load_dfl(self):
          """ Load alignments from DeepFaceLab and format for Faceswap """
          alignments = dict()
          for face in self.faces.file_list_sorted:
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Fix convert-adjust (#531)

* Add dimensions to alignments + refactor

* Add frame_dims + funcs to DetectFaces. Add alignments lib

* Convert Adjust working

* Refactor and tidy up 
tools/lib_alignments/jobs.py