      """
  
      def __init__(self):
          logger.debug("Initializing %s", self.__class__.__name__)
          pathcache = get_config().pathcache
          self.pathicons = os.path.join(pathcache, "icons")
          self.pathpreview = os.path.join(pathcache, "preview")
          self.pathoutput = None
          self.previewoutput = None
          self.previewtrain = dict()
 
</s> remove     def __init__(self):
 </s> add     def __init__(self, pathcache=None): </s> remove     def __init__(self):
        logger.debug("Initializing %s", self.__class__.__name__)
        self.config = get_config(".".join(self.__module__.split(".")[-2:]))
 </s> add     def __init__(self, config=None):
        logger.debug("Initializing %s: (config: %s)", self.__class__.__name__, config)
        self.config = self.set_config(config) </s> remove     def __init__(self):
        logger.debug("Initializing %s", self.__class__.__name__)
        self.config = get_config(".".join(self.__module__.split(".")[-2:]))
 </s> add     def __init__(self, config=None):
        logger.debug("Initializing %s: (config: %s)", self.__class__.__name__, config)
        self.config = self.set_config(config)
        pathcache = get_config().pathcache if pathcache is None else pathcache
      """
  
      def __init__(self):
          logger.debug("Initializing %s", self.__class__.__name__)
        pathcache = get_config().pathcache if pathcache is None else pathcache
          self.pathicons = os.path.join(pathcache, "icons")
          self.pathpreview = os.path.join(pathcache, "preview")
          self.pathoutput = None
          self.previewoutput = None
          self.previewtrain = dict()
keep keep keep keep replace keep keep keep keep keep
 Convert settings tool (#737)

* Initial prediction pipeline and display

* Patch faces from convert pipeline. Load configs

* Add tkinter canvas for image display

* Radio buttons to config gui. Standardise config gui. Remove dssim loss from realface

* Add action frame

* Live update cli options

* Live update config changes

* Quicker frame loading. Refresh faces button callback

* remove debug code

* Add saving and reloading config buttons

* Reduce lag with threading

* Busy indicator + geometry updates

* Fix options canvas resizing

* Add global config saving and resetting

* tools to own tab

* Rename tool to 'preview'

* geometry tweak

* pep8 fixes 
lib/gui/utils.py