  
      def align_image(self, center, scale):
          """ Crop and align image around center """
          image = self.crop(
              self.frame,
              center,
              scale).transpose((2, 0, 1)).astype(np.float32) / 255.0
  
          return np.expand_dims(image, 0)
  
 
</s> remove         scale = (self.bounding_box['right']
                 - self.bounding_box['left']
                 + self.bounding_box['bottom']
                 - self.bounding_box['top']) / 195.0
 </s> add         scale = (detected_face['right']
                 - detected_face['left']
                 + detected_face['bottom']
                 - detected_face['top']) / 195.0 </s> remove             landmarks.append((
                (int(self.bounding_box['left'] / self.input_scale),
                 int(self.bounding_box['top'] / self.input_scale),
                 int(self.bounding_box['right'] / self.input_scale),
                 int(self.bounding_box['bottom'] / self.input_scale)),
                landmarks_xy))
 </s> add             landmarks.append(((detected_face['left'],
                               detected_face['top'],
                               detected_face['right'],
                               detected_face['bottom']),
                              landmarks_xy)) </s> remove             center, scale = self.get_center_scale()
 </s> add             center, scale = self.get_center_scale(detected_face) </s> remove         center = np.array([(self.bounding_box['left']
                            + self.bounding_box['right']) / 2.0,
                           (self.bounding_box['top']
                            + self.bounding_box['bottom']) / 2.0])
 </s> add         center = np.array([(detected_face['left']
                            + detected_face['right']) / 2.0,
                           (detected_face['top']
                            + detected_face['bottom']) / 2.0]) </s> remove         for d_rect in self.detected_faces:
            self.get_bounding_box(d_rect)
            del d_rect
 </s> add         for detected_face in self.detected_faces:
            self.image,
  
      def align_image(self, center, scale):
          """ Crop and align image around center """
          image = self.crop(
            self.image,
              center,
              scale).transpose((2, 0, 1)).astype(np.float32) / 255.0
  
          return np.expand_dims(image, 0)
  
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