          if self.initialized:
              return
          self.initialize_vram(detector)
          self.initialize_keras(detector)
          self.initialize_detector(detector, mtcnn_kwargs)
          self.initialized = True
  
      def initialize_vram(self, detector):
          """ Initialize vram based on detector """
 
</s> remove         self.input_scale = 1.0
        self.images = self.process_input(input_image,
                                         input_is_predetected_face)

    def process_input(self, input_image, input_is_predetected_face):
        """ Process import image:
            Size down if required
            Duplicate into rgb colour space """
        if not input_is_predetected_face:
            input_image = self.scale_down(input_image)
        return self.compile_color_space(input_image)

    def scale_down(self, image):
 </s> add     def scale_image(self, input_is_predetected_face, detector): </s> remove     def create_detector(self, verbose, detector):
 </s> add     def create_detector(self, verbose, detector, placeholder): </s> remove         pixel_count = self.width * self.height
 </s> add         image = self.image_rgb
        if input_is_predetected_face:
            return image </s> remove     def detect_faces(self, images):
        """ Detect faces in images """
 </s> add     def detect_faces(self, image):
        """ Detect faces in rgb image """
        # VRAM Scaling factor must be set AFTER Keras has loaded
        VRAM.set_scale_to(detector)

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

          self.initialize_detector(detector, mtcnn_kwargs)
          self.initialized = True
  
      def initialize_vram(self, detector):
          """ Initialize vram based on detector """
keep keep keep add 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