          calculates landmarks """
  
      def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                   mtcnn_kwargs=None, verbose=False,
                   input_is_predetected_face=False):
          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs, dlib_buffer)
 
</s> remove         self.initialize(detector, mtcnn_kwargs, dlib_buffer)
 </s> add         self.initialize(mtcnn_kwargs, dlib_buffer) </s> remove         self.frame = Frame(detector=detector,
                           input_image=input_image_bgr,
                           verbose=verbose,
                           input_is_predetected_face=input_is_predetected_face)

        self.detect_faces(input_is_predetected_face)
        self.bounding_boxes = self.get_bounding_boxes()
 </s> add         if not initialize_only:
            self.execute(input_image_bgr, input_is_predetected_face) </s> remove         self.landmarks = Align(image=self.frame.image_rgb,
                               detected_faces=self.bounding_boxes,
                               keras_model=self.keras,
                               verbose=self.verbose).landmarks

    def initialize(self, detector, mtcnn_kwargs, dlib_buffer):
 </s> add     def initialize(self, mtcnn_kwargs, dlib_buffer):
                 input_is_predetected_face=False,
                 initialize_only=False):
          calculates landmarks """
  
      def __init__(self, input_image_bgr, detector, dlib_buffer=64,
                   mtcnn_kwargs=None, verbose=False,
                 input_is_predetected_face=False,
                 initialize_only=False):
          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs, dlib_buffer)
keep keep keep keep replace keep keep keep keep keep
 Alignments Tool - Manual (#503)

* Initial alignment tool implementation

* Add face processing. Fix helptext formatting for cli and gui

* Extract faces from alignments file

* Add draw landmarks

* fix analysis hours past 24 bug

* Remove tools flag. Enlarge GUI tooltips

* Add filename extension check for image folders

* Fix folder nonetype bug and linting

* Bugfix renaming of faces

* Import alignments from DeepFaceLab

* Remove frames requirement for dfl

* Alignments Tool: Add remove frames

* Alignments: Add remove frames (#492)

* Alignments Tool: Add remove frames

* Implement Frame display for manual extract

* Alignments refactor

* Further navigation improvements

* Further navigation improvements

* Alignment Tool: Refactor

* Move rotate_image_by_angle() to utils

* Further refactoring improvements

* Reduce key bindings. Add skip to has faces, Add resize frame binding

* More navigation options. Delete faces added. Save alignments added

* Add: Reload alignments. Add extra api calls. Better redraw handling.

* Manual Alignments - Alpha Build

* Rotate landmarks for rotated images

* Rebase to remove OriginalHiRes changes 
lib/face_alignment/extractor.py