          calculates landmarks """
  
      def __init__(self, input_image_bgr, detector, mtcnn_kwargs=None,
                   verbose=False, input_is_predetected_face=False):
          self.initialized = False
          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs)
 
</s> remove         self.frame = frame.images[0]
        self.input_scale = frame.input_scale
 </s> add         self.image = image </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.output_shown = False
 </s> add  </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
          calculates landmarks """
  
      def __init__(self, input_image_bgr, detector, mtcnn_kwargs=None,
                   verbose=False, input_is_predetected_face=False):

          self.verbose = verbose
          self.keras = KERAS_MODEL
          self.detector = None
  
          self.initialize(detector, mtcnn_kwargs)
keep keep keep keep 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