          return image.astype("uint8")
  
  
  class ConfigTools():
      """ Saving and resetting config values and stores selected variables """
      def __init__(self):
          self.config = Config(None)
          self.config_dicts = self.get_config_dicts()  # Holds currently saved config
          self.tk_vars = dict()
  
 
</s> remove         self.config = Config(None)
        self.config_dicts = self.get_config_dicts()  # Holds currently saved config
 </s> add         self._config = Config(None) </s> remove         self.config.config = new_config
        self.config.save_config()
        print("Saved config: '{}'".format(self.config.configfile))
        # Update config dict to newly saved
        self.config_dicts = self.get_config_dicts()
        logger.debug("Saved config")
 </s> add         self._config.config = new_config
        self._config.save_config()
        logger.info("Saved config: '%s'", self._config.configfile) </s> remove         """ Update config with selected values """
 </s> add         """ Update :attr:`config` with the currently selected values from the GUI. """ </s> remove     def reset_config_saved(self, section=None):
        """ Reset config to saved values """
 </s> add     def reset_config_to_saved(self, section=None):
        """ Reset the GUI parameters to their saved values within the configuration file.

        Parameters
        ----------
        section: str, optional
            The configuration section to reset the values for, If ``None`` provided then all
            sections are reset. Default: ``None``
        """
    """ Tools for loading, saving, setting and retrieving configuration file values.

    Attributes
    ----------
    tk_vars: dict
        Global tkinter variables. `Refresh` and `Busy` :class:`tkinter.BooleanVar`
    """
          return image.astype("uint8")
  
  
  class ConfigTools():
    """ Tools for loading, saving, setting and retrieving configuration file values.

    Attributes
    ----------
    tk_vars: dict
        Global tkinter variables. `Refresh` and `Busy` :class:`tkinter.BooleanVar`
    """
      def __init__(self):
          self.config = Config(None)
          self.config_dicts = self.get_config_dicts()  # Holds currently saved config
          self.tk_vars = dict()
  
keep keep keep keep 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