                          logger.info("Save requested")
                          self._save_now = True
  
                  # GUI Preview trigger update monitor
                  if self._args.redirect_gui:
                      if os.path.isfile(self._gui_triggers["mask_toggle"]):
                          self._toggle_preview_mask = True
  
                      if not preview_trigger_set and os.path.isfile(self._gui_triggers["update"]):
                          print("\n")
                          logger.info("Refresh preview requested")
                          self._refresh_preview = True
                          preview_trigger_set = True
  
                      if preview_trigger_set and not self._refresh_preview:
                          logger.debug("Resetting GUI preview trigger")
                          preview_trigger_set = False
  
                  sleep(1)
              except KeyboardInterrupt:
                  logger.debug("Keyboard Interrupt received")
                  break
 
</s> remove                 if is_preview and cv_key == ord("s"):
                    print("\n")
                    logger.info("Save requested")
                    self._save_now = True
                if is_preview and cv_key == ord("r"):
                    print("\n")
                    logger.info("Refresh preview requested")
                    self._refresh_preview = True
                if is_preview and cv_key == ord("m"):
                    print("\n")
                    logger.verbose("Toggle mask display requested")
                    self._toggle_preview_mask = True
 </s> add  </s> remove                 if is_preview and (cv_key == ord("\n") or cv_key == ord("\r")):
                    logger.debug("Exit requested")
 </s> add                 if not self._preview_monitor(cv_key): </s> remove                     for filename in self._gui_triggers.values():
                        if os.path.isfile(filename):
                            logger.debug("Removing gui trigger file: %s", filename)
                            os.remove(filename)

 </s> add  </s> remove         if is_preview:
 </s> add         if self._args.preview: </s> remove         is_preview = self._args.preview
        preview_trigger_set = False
 </s> add 
                self._process_gui_triggers()
                          logger.info("Save requested")
                          self._save_now = True
  
                  # GUI Preview trigger update monitor
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
                self._process_gui_triggers()
  
                  sleep(1)
              except KeyboardInterrupt:
                  logger.debug("Keyboard Interrupt received")
                  break
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Bugfixes
  - extract - debug landmarks - fix non integer errror
  - training (gui) - fix mask toggling 
scripts/train.py