  
      def terminate(self):
          """ Terminate the running process in a LongRunningTask so we can still
              output to console """
          root = get_config().root
          if self.thread is None:
              logger.debug("Terminating wrapper in LongRunningTask")
              self.thread = LongRunningTask(target=self.terminate_in_thread,
                                            args=(self.command, self.process))
              self.thread.start()
 
</s> remove             root.after(1000, self.terminate)
 </s> add             self.config.root.after(1000, self.terminate) </s> remove             root.after(1000, self.terminate)
 </s> add             self.config.root.after(1000, self.terminate) </s> remove             timeout = get_config().tk_vars["traintimeout"].get()
 </s> add             timeout = self.config.tk_vars["traintimeout"].get() </s> remove         logger.trace("Loading aligned face: (size: %s, align_eyes: %s, dtype: %s)",
                     size, align_eyes, dtype)
        padding = int(size * self.extract_ratio) // 2
        self.aligned["size"] = size
        self.aligned["padding"] = padding
        self.aligned["align_eyes"] = align_eyes
        self.aligned["matrix"] = get_align_mat(self, size, align_eyes)
        if image is None:
            self.aligned["face"] = None
 </s> add         # Don't reload an already aligned face:
        if self.aligned:
            logger.trace("Skipping alignment calculation for already aligned face") </s> remove         self.statusbar = get_config().statusbar
 </s> add         self.config = get_config()
        self.statusbar = self.config.statusbar
  
      def terminate(self):
          """ Terminate the running process in a LongRunningTask so we can still
              output to console """

          if self.thread is None:
              logger.debug("Terminating wrapper in LongRunningTask")
              self.thread = LongRunningTask(target=self.terminate_in_thread,
                                            args=(self.command, self.process))
              self.thread.start()
keep keep keep keep replace 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