  import os
  import sys
  
  import cv2
  import numpy as np
  
  from lib.faces_detect import DetectedFace
  from lib.logger import get_loglevel
  from lib.utils import GetModel
  from plugins.extract.pipeline import Extractor
 
</s> remove from lib.utils import GetModel
 </s> add from lib.vgg_face import VGGFace
 </s> remove import os
import sys
 </s> add  </s> remove from lib.utils import GetModel
 </s> add from lib.vgg_face import VGGFace </s> remove             encodings = self.predict(face["face"])
 </s> add             encodings = self.vgg_face.predict(face["face"])
 </s> remove     def predict(self, face):
        """ Return encodings for given image from vgg_face """
        if face.shape[0] != self.input_size:
            face = self.resize_face(face)
        blob = cv2.dnn.blobFromImage(face,  # pylint: disable=no-member
                                     1.0,
                                     (self.input_size, self.input_size),
                                     [104, 117, 123],
                                     False,
                                     False)
        self.vgg_face.setInput(blob)
        preds = self.vgg_face.forward()[0, :]
        return preds

    def resize_face(self, face):
        """ Resize incoming face to model_input_size """
        if face.shape[0] < self.input_size:
            interpolation = cv2.INTER_CUBIC  # pylint:disable=no-member
        else:
            interpolation = cv2.INTER_AREA  # pylint:disable=no-member

        face = cv2.resize(face,  # pylint:disable=no-member
                          dsize=(self.input_size, self.input_size),
                          interpolation=interpolation)
        return face

 </s> add 
  import os
  import sys
  
  import cv2

  
  from lib.faces_detect import DetectedFace
  from lib.logger import get_loglevel
  from lib.utils import GetModel
  from plugins.extract.pipeline import Extractor
keep keep keep keep replace keep keep keep keep keep
 Fixups

vgg_face: to own module
vgg_face: correct output and normalization
Extract: more aggressive queue sizes
sys_info: Fix cudnn check error on Linux 
lib/face_filter.py