      def get_center_scale(self, detected_faces):
          """ Get the center and set scale of bounding box """
          logger.debug("Calculating center and scale")
          center_scale = np.empty((len(detected_faces), 68, 3), dtype='float32')
          # TODO modify detected face to hold this data as a matrix
          for index, face in enumerate(detected_faces):
              x_center = (face.left + face.right) / 2.0
              y_center = (face.top + face.bottom) / 2.0 - face.h * 0.12
              scale = (face.w + face.h) * self.reference_scale
              center_scale[index, :, 0] = np.full(68, x_center, dtype='float32')
 
</s> remove         # TODO improve rudimentary subpixel logic to centroid of 3x3 window algorithm
 </s> add         # TODO improve rudimentary sub-pixel logic to centroid of 3x3 window algorithm </s> remove     def _nms(self, boxes, threshold):
 </s> add     @staticmethod
    def _nms(boxes, threshold): </s> remove             variances: (list[float]) Variances of priorboxes
 </s> add             variances: (list[float]) Variances of prior boxes </s> remove         for face in detected_faces:
 </s> add         for face, image in zip(batch["detected_faces"], batch["image"]): </s> remove         batch["feed"] = (batch["scaled_image"] - 127.5) / 127.5
 </s> add         batch["feed"] = (batch["image"] - 127.5) / 127.5
      def get_center_scale(self, detected_faces):
          """ Get the center and set scale of bounding box """
          logger.debug("Calculating center and scale")
          center_scale = np.empty((len(detected_faces), 68, 3), dtype='float32')

          for index, face in enumerate(detected_faces):
              x_center = (face.left + face.right) / 2.0
              y_center = (face.top + face.bottom) / 2.0 - face.h * 0.12
              scale = (face.w + face.h) * self.reference_scale
              center_scale[index, :, 0] = np.full(68, x_center, dtype='float32')
keep keep keep keep replace keep keep keep keep keep
 plugins.extract - Create ExtractMedia class for pipeline flow
Bugfix - Fix memory leak in extract 
plugins/extract/align/fan.py