  
  
  class VGGFace2():
      """ VGG Face feature extraction.
          Input images should be in BGR Order """
  
      def __init__(self, backend="GPU", loglevel="INFO"):
          logger.debug("Initializing %s: (backend: %s, loglevel: %s)",
                       self.__class__.__name__, backend, loglevel)
          set_system_verbosity(loglevel)
 
</s> remove             str: 'linkage' or 'vector'
 </s> add             bool:
                ``True`` if vector_linkage should be used. ``False`` if linkage should be used </s> remove         """ Return encodings for given image from vgg_face """
 </s> add         """ Return encodings for given image from vgg_face2.

        Parameters
        ----------
        face: numpy.ndarray
            The face to be fed through the predictor. Should be in BGR channel order

        Returns
        -------
        numpy.ndarray
            The encodings for the face
        """ </s> remove     def resize_face(self, face):
        """ Resize incoming face to model_input_size """
 </s> add     def _resize_face(self, face):
        """ Resize incoming face to model_input_size.

        Parameters
        ----------
        face: numpy.ndarray
            The face to be fed through the predictor. Should be in BGR channel order

        Returns
        -------
        numpy.ndarray
            The face resized to model input size
        """ </s> remove         print(result_linkage.shape)
        exit(0)
        result_order = self.seriation(result_linkage,
                                      num_predictions,
                                      num_predictions + num_predictions - 2)

 </s> add         result_order = self._seriation(result_linkage,
                                       num_predictions,
                                       num_predictions + num_predictions - 2)
    Extracts feature vectors from faces in order to compare similarity.

    Parameters
    ----------
    backend: ['GPU', 'CPU']
        Whether to run inference on a GPU or on the CPU
    loglevel: ['INFO', 'VERBODE', 'DEBUG', 'TRACE']
        The system log level

    Notes
    -----
    Input images should be in BGR Order

    Model exported from: https://github.com/WeidiXie/Keras-VGGFace2-ResNet50 which is based on:
    https://www.robots.ox.ac.uk/~vgg/software/vgg_face/


    Licensed under Creative Commons Attribution License.
    https://creativecommons.org/licenses/by-nc/4.0/
    """
  
  
  class VGGFace2():
      """ VGG Face feature extraction.
    Extracts feature vectors from faces in order to compare similarity.

    Parameters
    ----------
    backend: ['GPU', 'CPU']
        Whether to run inference on a GPU or on the CPU
    loglevel: ['INFO', 'VERBODE', 'DEBUG', 'TRACE']
        The system log level

    Notes
    -----
    Input images should be in BGR Order

    Model exported from: https://github.com/WeidiXie/Keras-VGGFace2-ResNet50 which is based on:
    https://www.robots.ox.ac.uk/~vgg/software/vgg_face/


    Licensed under Creative Commons Attribution License.
    https://creativecommons.org/licenses/by-nc/4.0/
    """
  
      def __init__(self, backend="GPU", loglevel="INFO"):
          logger.debug("Initializing %s: (backend: %s, loglevel: %s)",
                       self.__class__.__name__, backend, loglevel)
          set_system_verbosity(loglevel)
keep keep keep keep replace keep keep keep keep keep
 bugfix: tools.preview - Fix for new icons
bugfix: lib.vgg_face2_keras - Remove debug code
documentation: lib.vgg_face2_keras 
lib/vgg_face2_keras.py