      def initialize_tkinter(self):
          """ Initialize tkinter for standalone or GUI """
          logger.debug("Initializing tkinter")
          initialize_images()
          self.set_geometry()
          self.root.title("Faceswap.py - Convert Settings")
          self.root.tk.call(
              "wm",
 
</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/
    """ </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 get_model(git_model_id, model_filename, backend):
        """ Check if model is available, if not, download and unzip it """
 </s> add     def _get_model(git_model_id, model_filename, backend):
        """ Check if model is available, if not, download and unzip it

        Parameters
        ----------
        git_model_id: int
            The second digit in the github tag that identifies this model. See
            https://github.com/deepfakes-models/faceswap-models for more information
        model_filename: str
            The name of the model to be loaded (see :class:`lib.utils.GetModel` for more
            information)
        backend: ['GPU', 'CPU']
            Whether to run inference on a GPU or on the CPU

        See Also
        --------
        lib.utils.GetModel: The model downloading and allocation class.
        """ </s> remove     def seriation(self, tree, points, current_index):
        """ Seriation method for sorted similarity
            input:
                - tree is a hierarchical tree (dendrogram)
                - points is the number of points given to the clustering process
                - current_index is the position in the tree for the recursive traversal
            output:
                - order implied by the hierarchical tree
 </s> add     def _seriation(self, tree, points, current_index):
        """ Seriation method for sorted similarity. </s> remove             face = self.resize_face(face)
 </s> add             face = self._resize_face(face)
        initialize_config(self.root, None, None, None)
      def initialize_tkinter(self):
          """ Initialize tkinter for standalone or GUI """
          logger.debug("Initializing tkinter")
        initialize_config(self.root, None, None, None)
          initialize_images()
          self.set_geometry()
          self.root.title("Faceswap.py - Convert Settings")
          self.root.tk.call(
              "wm",
keep keep add 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