  
      def initialize_detector(self, detector, mtcnn_kwargs):
          """ Initialize face detector """
          kwargs = {"verbose": self.verbose}
          if detector == "mtcnn":
              mtcnn_kwargs = self.detector.validate_kwargs(mtcnn_kwargs)
              kwargs["mtcnn_kwargs"] = mtcnn_kwargs
          else:
              kwargs["detector"] = detector
              scale_to = int(VRAM.scale_to ** 0.5)
 
</s> remove         else:
            kwargs["detector"] = detector
 </s> add         elif self.detector_name != "manual":
            kwargs["detector"] = self.detector_name </s> remove     def initialize_detector(self, detector, mtcnn_kwargs):
 </s> add     def initialize_detector(self, mtcnn_kwargs): </s> remove             self.initialize_detector(detector, mtcnn_kwargs)
 </s> add             self.initialize_detector(mtcnn_kwargs) </s> remove         VRAM.detector = detector
 </s> add         VRAM.detector = self.detector_name </s> remove     def initialize_vram(self, detector, dlib_buffer):
 </s> add     def initialize_vram(self, dlib_buffer):
        if self.detector_name == "mtcnn":
  
      def initialize_detector(self, detector, mtcnn_kwargs):
          """ Initialize face detector """
          kwargs = {"verbose": self.verbose}
        if self.detector_name == "mtcnn":
              mtcnn_kwargs = self.detector.validate_kwargs(mtcnn_kwargs)
              kwargs["mtcnn_kwargs"] = mtcnn_kwargs
          else:
              kwargs["detector"] = detector
              scale_to = int(VRAM.scale_to ** 0.5)
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