                      continue
                  if self.command == "train" and "[saved models]" in output.strip().lower():
                      logger.debug("Trigger GUI Training update")
                      self.wrapper.tk_vars["updatepreview"].set(True)
                      self.wrapper.tk_vars["refreshgraph"].set(True)
                  print(output.strip())
          returncode = self.process.poll()
          message = self.set_final_status(returncode)
          self.wrapper.terminate(message)
 
</s> remove         if not get_config().session.initialized and iterations > 0:
            # Don't initialize session until after the first iteration as state
            # file must exist first
            get_config().session.initialize_session(is_training=True)

 </s> add  </s> remove             if self.task.command == "train":
                self.tk_vars["istraining"].set(False)
 </s> add  </s> remove         dst = str(get_folder("{}_snapshot_{}_iters".format(self.model_dir, iterations)))
 </s> add         snapshot_dir = "{}_snapshot_{}_iters".format(self.model_dir, iterations)

        if os.path.isdir(snapshot_dir):
            logger.debug("Removing previously existing snapshot folder: '%s'", snapshot_dir)
            rmtree(snapshot_dir)

        dst = str(get_folder(snapshot_dir)) </s> remove             # Initialize session stats and set initial timestamp
 </s> add             # Set initial timestamp
                    if not self.config.session.initialized:
                        # Don't initialize session until after the first save as state
                        # file must exist first
                        self.config.session.initialize_session(is_training=True)
                      continue
                  if self.command == "train" and "[saved models]" in output.strip().lower():
                      logger.debug("Trigger GUI Training update")
                    if not self.config.session.initialized:
                        # Don't initialize session until after the first save as state
                        # file must exist first
                        self.config.session.initialize_session(is_training=True)
                      self.wrapper.tk_vars["updatepreview"].set(True)
                      self.wrapper.tk_vars["refreshgraph"].set(True)
                  print(output.strip())
          returncode = self.process.poll()
          message = self.set_final_status(returncode)
          self.wrapper.terminate(message)
keep keep add keep keep keep keep keep keep
 Bugfixes

- Fix filter/nfilter for convert
- Remove existing snapshot folder before creating if it pre-exists
- Don't initialize training session until after first save. "Nonetype" session fix 
lib/gui/wrapper.py