              raise Exception("Error: Unable to find {}, reinstall "
                              "the lib!".format(data_path))
          return data_path
  
      def create_detector(self, verbose, detector):
          """ Add the requested detectors """
          if self.initialized:
              return
  
          self.verbose = verbose
 
</s> remove     def __init__(self, frame, detected_faces, keras_model, verbose):
 </s> add     def __init__(self, image, detected_faces, keras_model, verbose): </s> remove         self.frame = frame.images[0]
        self.input_scale = frame.input_scale
 </s> add         self.image = image </s> remove         if not VRAM.scale_to and VRAM.device != -1:
            VRAM.set_scale_to(detector)
 </s> add         self.input_scale = 1.0 </s> remove             self.detector.detect_faces(self.frame.images)

    def convert_to_dlib_rectangle(self):
 </s> add             self.detector.detect_faces(self.frame.image_detect)

    def get_bounding_boxes(self):
        """ Return the corner points of the bounding box scaled
            to original image """
        bounding_boxes = list()
        for d_rect in self.detector.detected_faces:
            d_rect = self.convert_to_dlib_rectangle(d_rect)
            bounding_box = {
                'left': int(d_rect.left() / self.frame.input_scale),
                'top': int(d_rect.top() / self.frame.input_scale),
                'right': int(d_rect.right() / self.frame.input_scale),
                'bottom': int(d_rect.bottom() / self.frame.input_scale)}
            bounding_boxes.append(bounding_box)
        return bounding_boxes

    def convert_to_dlib_rectangle(self, d_rect):
    def create_detector(self, verbose, detector, placeholder):
              raise Exception("Error: Unable to find {}, reinstall "
                              "the lib!".format(data_path))
          return data_path
  
    def create_detector(self, verbose, detector, placeholder):
          """ Add the requested detectors """
          if self.initialized:
              return
  
          self.verbose = verbose
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/detectors.py