  
  from lib.aligner import Extract as AlignerExtract
  from lib.cli import ConvertArgs
  from lib.gui.custom_widgets import ContextMenu
  from lib.gui.utils import get_images, initialize_images
  from lib.gui.custom_widgets import Tooltip
  from lib.gui.control_helper import set_slider_rounding
  from lib.convert import Converter
  from lib.faces_detect import DetectedFace
  from lib.model.masks import get_available_masks
 
</s> remove """ VGG_Face2 inference
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/
"""
 </s> add """ VGG_Face2 inference and sorting """ </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             face = self.resize_face(face)
 </s> add             face = self._resize_face(face) </s> remove         Input images should be in BGR Order """
 </s> add     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/
    """
from lib.gui.utils import get_images, initialize_config, initialize_images
  
  from lib.aligner import Extract as AlignerExtract
  from lib.cli import ConvertArgs
  from lib.gui.custom_widgets import ContextMenu
from lib.gui.utils import get_images, initialize_config, initialize_images
  from lib.gui.custom_widgets import Tooltip
  from lib.gui.control_helper import set_slider_rounding
  from lib.convert import Converter
  from lib.faces_detect import DetectedFace
  from lib.model.masks import get_available_masks
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 
tools/preview.py