  
          self.detect_faces(input_is_predetected_face)
          self.convert_to_dlib_rectangle()
  
          self.landmarks = Align(frame=self.frame,
                                 detected_faces=self.detector.detected_faces,
                                 keras_model=self.keras,
                                 verbose=self.verbose).landmarks
  
      def initialize(self, detector, mtcnn_kwargs):
          """ initialize Keras and Dlib """
 
</s> remove         self.convert_to_dlib_rectangle()
 </s> add         self.bounding_boxes = self.get_bounding_boxes() </s> remove         if self.initialized:
            return
        self.initialize_vram(detector)
 </s> add         if not VRAM.initialized:
            self.initialize_vram(detector)

        if not self.keras.initialized:
            self.initialize_keras(detector)
            # VRAM Scaling factor must be set AFTER Keras has loaded
            VRAM.set_scale_to(detector)

        if detector == "mtcnn":
            self.detector = MTCNN_DETECTOR
        else:
            self.detector = DLIB_DETECTORS </s> remove             self.detector = MTCNN_DETECTOR
 </s> add  </s> remove         self.frame = frame.images[0]
        self.input_scale = frame.input_scale
 </s> add         self.image = image </s> remove         self.bounding_box = None
 </s> add 
        self.landmarks = Align(image=self.frame.image_rgb,
                               detected_faces=self.bounding_boxes,
  
          self.detect_faces(input_is_predetected_face)
          self.convert_to_dlib_rectangle()
  
        self.landmarks = Align(image=self.frame.image_rgb,
                               detected_faces=self.bounding_boxes,
        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):
          """ initialize Keras and Dlib """
keep keep keep keep replace replace keep keep keep keep keep
 Merge staging to Master (#470)

* DLib scaling amends (#461)

* Scaling area fix and rework of frames and bounding boxes

* Update DLib scaling and initialization

* Extract - Detector reinitialization bugfix

* Slight OriginaHightRes Model re-factoring (#464)

* Model re-factoring, might fix red screen of death on multi-gpu configurations

* Limited trainer support for various INPUT_SIZE

* Auto Extraction multiprocess bugfix

* Sort tool bugfixes and linting 
lib/face_alignment/extractor.py