              self.interface.set_redraw(True)
  
          self.interface.state["edit"]["updated"] = True
          self.interface.state["edit"]["update_faces"] = True
  
      @staticmethod
      def extracted_to_alignment(extract_data):
          """ Convert Extracted Tuple to Alignments data """
          alignment = dict()
          bbox, landmarks = extract_data
          alignment["x"] = bbox["left"]
          alignment["w"] = bbox["right"] - bbox["left"]
          alignment["y"] = bbox["top"]
          alignment["h"] = bbox["bottom"] - bbox["top"]
          alignment["landmarksXY"] = landmarks
          return alignment
 
</s> remove         """ Convert a detected face to alignment dict """
 </s> add         """  Return the detected face formatted for an alignments file

        returns
        -------
        alignment: dict
            The alignment dict will be returned with the keys ``x``, ``w``, ``y``, ``h``,
            ``landmarks_xy``, ``hash``.
        """
 </s> remove         alignment["landmarksXY"] = self.landmarksXY
 </s> add         alignment["landmarks_xy"] = self.landmarks_xy </s> remove         self.landmarksXY = alignment["landmarksXY"]
 </s> add         self.landmarks_xy = alignment["landmarks_xy"] </s> remove             landmarks = alignment["landmarksXY"]
 </s> add             landmarks = alignment["landmarks_xy"] </s> remove             landmarks = alignment["landmarksXY"]
 </s> add             landmarks = alignment["landmarks_xy"]
              self.interface.set_redraw(True)
  
          self.interface.state["edit"]["updated"] = True
          self.interface.state["edit"]["update_faces"] = True












keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace
 De-Multiprocess Extract (#871)

* requirements.txt: - Pin opencv to 4.1.1 (fixes cv2-dnn error)

* lib.face_detect.DetectedFace: change LandmarksXY to landmarks_xy. Add left, right, top, bottom attributes

* lib.model.session: Session manager for loading models into different graphs (for Nvidia + CPU)

* plugins.extract._base: New parent class for all extract plugins

* plugins.extract.pipeline. Remove MultiProcessing. Dynamically limit batchsize for Nvidia cards. Remove loglevel input

* S3FD + FAN plugins. Standardise to Keras version for all backends

* Standardize all extract plugins to new threaded codebase

* Documentation. Start implementing Numpy style docstrings for Sphinx Documentation

* Remove s3fd_amd. Change convert OTF to expect DetectedFace object

* faces_detect - clean up and documentation

* Remove PoolProcess

* Migrate manual tool to new extract workflow

* Remove AMD specific extractor code from cli and plugins

* Sort tool to new extract workflow

* Remove multiprocessing from project

* Remove multiprocessing queues from QueueManager

* Remove multiprocessing support from logger

* Move face_filter to new extraction pipeline

* Alignments landmarksXY > landmarks_xy and legacy handling

* Intercept get_backend for sphinx doc build

# Add Sphinx documentation 
tools/lib_alignments/jobs_manual.py