          if "[saved models]" not in output.strip().lower():
              return
  
          logger.debug("Trigger GUI Training update")
          logger.trace("tk_vars: %s", {itm: var.get()  # type:ignore
                                       for itm, var in self.wrapper.tk_vars.__dict__.items()})
          if not Session.is_training:
              # Don't initialize session until after the first save as state file must exist first
              logger.debug("Initializing curret training session")
              Session.initialize_session(self._session_info["model_folder"],
                                         self._session_info["model_name"],
 
</s> remove         self.wrapper.tk_vars.refresh_graph.set(True)
 </s> add         tk_vars.refresh_graph.set(True) </s> remove         if self.command != "train" or not self.wrapper.tk_vars.is_training.get():
 </s> add         tk_vars = get_config().tk_vars
        if self._command != "train" or not tk_vars.is_training.get(): </s> remove     def __init__(self):
 </s> add     def __init__(self) -> None: </s> remove             logger.trace("tqdm initializing. Skipping")
 </s> add             logger.trace("tqdm initializing. Skipping")  # type:ignore[attr-defined] </s> remove             logger.trace("Not loss message. Returning False")
 </s> add             logger.trace("Not loss message. Returning False")  # type:ignore[attr-defined]
        logger.trace("tk_vars: %s", {itm: var.get()  # type:ignore[attr-defined]
                                     for itm, var in tk_vars.__dict__.items()})
          if "[saved models]" not in output.strip().lower():
              return
  
          logger.debug("Trigger GUI Training update")
        logger.trace("tk_vars: %s", {itm: var.get()  # type:ignore[attr-defined]
                                     for itm, var in tk_vars.__dict__.items()})
        logger.trace("tk_vars: %s", {itm: var.get()  # type:ignore[attr-defined]
                                     for itm, var in tk_vars.__dict__.items()})
          if not Session.is_training:
              # Don't initialize session until after the first save as state file must exist first
              logger.debug("Initializing curret training session")
              Session.initialize_session(self._session_info["model_folder"],
                                         self._session_info["model_name"],
keep keep keep keep replace replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py