                             verbose=verbose,
                             input_is_predetected_face=input_is_predetected_face)
  
          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
 
</s> remove         self.landmarks = Align(frame=self.frame,
                               detected_faces=self.detector.detected_faces,
 </s> add         self.landmarks = Align(image=self.frame.image_rgb,
                               detected_faces=self.bounding_boxes, </s> remove         self.bounding_box = None
 </s> add  </s> remove         self.frame = frame.images[0]
        self.input_scale = frame.input_scale
 </s> add         self.image = image </s> remove         if VRAM.device != -1:
            self.scale_to = VRAM.scale_to
        else:
            self.scale_to = self.height * self.width
 </s> add         self.image_bgr = input_image
        self.image_rgb = input_image[:, :, ::-1].copy()
        self.image_detect = self.scale_image(input_is_predetected_face,
                                             detector) </s> remove         if not VRAM.scale_to and VRAM.device != -1:
            VRAM.set_scale_to(detector)
 </s> add         self.input_scale = 1.0
        self.bounding_boxes = self.get_bounding_boxes()
                             verbose=verbose,
                             input_is_predetected_face=input_is_predetected_face)
  
          self.detect_faces(input_is_predetected_face)
        self.bounding_boxes = self.get_bounding_boxes()
  
          self.landmarks = Align(frame=self.frame,
                                 detected_faces=self.detector.detected_faces,
                                 keras_model=self.keras,
                                 verbose=self.verbose).landmarks
keep keep keep keep replace keep keep keep keep keep
 DLib scaling amends (#461)

* Scaling area fix and rework of frames and bounding boxes

* Update DLib scaling and initialization 
lib/face_alignment/extractor.py