          """ 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",
              "iconphoto",
              self.root._w, get_images().icons["favicon"])  # pylint:disable=protected-access
          logger.debug("Initialized tkinter")
  
 
</s> remove         initialize_config(self.root, None, None, None)
 </s> add         initialize_config(self, None, None, None) </s> remove     def initialize_tkinter(self):
        """ Initialize tkinter for standalone or GUI """
 </s> add     def _initialize_tkinter(self):
        """ Initialize a standalone tkinter instance. """ </s> remove             self.root._w, get_images().icons["favicon"])  # pylint:disable=protected-access
 </s> add             self._w, get_images().icons["favicon"])  # pylint:disable=protected-access </s> remove     def get_scaling(self):
        """ Get dpi and update scaling for the display """
        dpi = self.root.winfo_fpixels("1i")
 </s> add     def _get_scaling(self):
        """ Get dpi and update scaling for the display.

        Returns
        -------
        float: The scaling factor for display
        """
        dpi = self.winfo_fpixels("1i") </s> remove         self.display = FacesDisplay(256, 64, self.tk_vars)
        self.samples = Samples(arguments, 5, self.display, self.lock, self.trigger_patch)
        self.patch = Patch(arguments,
                           self.samples,
                           self.display,
                           self.lock,
                           self.trigger_patch,
                           self.config_tools,
                           self.tk_vars)

        self.initialize_tkinter()
        self.image_canvas = None
        self.opts_book = None
        self.cli_frame = None  # cli frame holds cli options
 </s> add         self._display = FacesDisplay(256, 64, self._tk_vars)

        trigger_patch = Event()
        self._samples = Samples(arguments, 5, self._display, self._lock, trigger_patch)
        self._patch = Patch(arguments,
                            self._samples,
                            self._display,
                            self._lock,
                            trigger_patch,
                            self._config_tools,
                            self._tk_vars)

        self._initialize_tkinter()
        self._image_canvas = None
        self._opts_book = None
        self._cli_frame = None  # cli frame holds cli options
        self._set_geometry()
        self.title("Faceswap.py - Convert Settings")
        self.tk.call(
          """ Initialize tkinter for standalone or GUI """
          logger.debug("Initializing tkinter")
          initialize_config(self.root, None, None, None)
          initialize_images()
        self._set_geometry()
        self.title("Faceswap.py - Convert Settings")
        self.tk.call(
        self._set_geometry()
        self.title("Faceswap.py - Convert Settings")
        self.tk.call(
        self._set_geometry()
        self.title("Faceswap.py - Convert Settings")
        self.tk.call(
              "wm",
              "iconphoto",
              self.root._w, get_images().icons["favicon"])  # pylint:disable=protected-access
          logger.debug("Initialized tkinter")
  
keep keep keep keep replace replace replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
tools/preview.py