          self.statusbar.stop()
          self.statusbar.message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
          get_config().session.__init__()
          preview_trigger().clear()
          self.command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
 
</s> remove     @staticmethod
    def init_training_session(cliopt):
        """ Set the session stats for disable logging, model folder and model name """
        session = get_config().session
        if cliopt[0] == "-t":
            session.modelname = cliopt[1].lower().replace("-", "_")
            logger.debug("modelname: '%s'", session.modelname)
        if cliopt[0] == "-m":
            session.modeldir = cliopt[1]
            logger.debug("modeldir: '%s'", session.modeldir)
 </s> add     def _get_training_session_info(self, cli_option):
        """ Set the model folder and model name to :`attr:_training_session_location` so the global
        session picks them up for logging to the graph and analysis tab.

        Parameters
        ----------
        cli_option: list
            The command line option to be checked for model folder or name
        """
        if cli_option[0] == "-t":
            self._training_session_location["model_name"] = cli_option[1].lower().replace("-", "_")
            logger.debug("model_name: '%s'", self._training_session_location["model_name"])
        if cli_option[0] == "-m":
            self._training_session_location["model_folder"] = cli_option[1]
            logger.debug("model_folder: '%s'", self._training_session_location["model_folder"]) </s> remove                 self.init_training_session(cliopt)
 </s> add                 self._get_training_session_info(cliopt)
 </s> remove         """ Build the faceswap command and arguments list """
 </s> add         """ Build the faceswap command and arguments list.

        If training, pass the model folder and name to the training :class:`lib.gui.stats.Session`
        for the GUI.
        """
        Session.stop_training()
          self.statusbar.stop()
          self.statusbar.message.set(message)
          self.tk_vars["display"].set(None)
          get_images().delete_preview()
        Session.stop_training()
          preview_trigger().clear()
          self.command = None
          logger.debug("Terminated Faceswap processes")
          print("Process exited.")
  
keep keep keep keep replace keep keep keep keep keep
 GUI - Stats optimization (#1067)

* Faster stat loading + caching

* Compress data in cache

* Optimize some calculations

* Vectorize smoothing

* stats.Calculations optimized

* Load latest training data from live iterator

* Add options to training graph 
lib/gui/wrapper.py