                      opt = (opt, optval)
                  yield opt
  
          if command in ("extract", "convert") and output_dir is not None:
              get_images().set_faceswap_output_path(output_dir, batch_mode=batch_mode)
 
</s> remove                 if ((self.command == "train" and self.capture_loss(output)) or
                        (self.command == "effmpeg" and self.capture_ffmpeg(output)) or
                        (self.command not in ("train", "effmpeg") and self.capture_tqdm(output))):
                    continue
                if self.command == "train" and self.wrapper.tk_vars.is_training.get():
                    if "[saved models]" in output.strip().lower():
                        logger.debug("Trigger GUI Training update")
                        logger.trace("tk_vars: %s",
                                     {itm: var.get()
                                      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"],
                                is_training=True)
                        self.wrapper.tk_vars.update_preview.set(True)
                        self.wrapper.tk_vars.refresh_graph.set(True)
                    if "[preview updated]" in output.strip().lower():
                        self.wrapper.tk_vars.update_preview.set(True)
                        continue
 </s> add                 self._process_training_stdout(output) </s> remove         assert self._pathoutput is not None
        folders = [] if not os.path.exists(self._pathoutput) else [
            os.path.join(self._pathoutput, folder)
            for folder in os.listdir(self._pathoutput)
            if os.path.isdir(os.path.join(self._pathoutput, folder))]
 </s> add         folders = [] if not os.path.exists(self._output_path) else [
            os.path.join(self._output_path, folder)
            for folder in os.listdir(self._output_path)
            if os.path.isdir(os.path.join(self._output_path, folder))]
            get_images().preview_extract.set_faceswap_output_path(output_dir,
                                                                  batch_mode=batch_mode)
                      opt = (opt, optval)
                  yield opt
  
          if command in ("extract", "convert") and output_dir is not None:
            get_images().preview_extract.set_faceswap_output_path(output_dir,
                                                                  batch_mode=batch_mode)
keep keep keep keep replace
 GUI - Preview updates
  - Training preview. Embed preview pop-out window
  - Bugfix - convert/extract previews 
lib/gui/options.py