          preview_trigger_set = False
          logger.debug("Launching Monitor")
          logger.info("===================================================")
          logger.info("  Starting")
          if is_preview:
              logger.info("  Using live preview")
          logger.info("  Press '%s' to save and quit",
                      "Stop" if self._args.redirect_gui or self._args.colab else "ENTER")
          if not self._args.redirect_gui and not self._args.colab:
              logger.info("  Press 'S' to save model weights immediately")
 
</s> remove         is_preview = self._args.preview
        preview_trigger_set = False
 </s> add  </s> remove                 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
 </s> add                 self._process_gui_triggers() </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 
        if self._args.preview:
          preview_trigger_set = False
          logger.debug("Launching Monitor")
          logger.info("===================================================")
          logger.info("  Starting")
        if self._args.preview:
              logger.info("  Using live preview")
          logger.info("  Press '%s' to save and quit",
                      "Stop" if self._args.redirect_gui or self._args.colab else "ENTER")
          if not self._args.redirect_gui and not self._args.colab:
              logger.info("  Press 'S' to save model weights immediately")
keep keep keep keep replace keep keep keep keep keep
 Bugfixes
  - extract - debug landmarks - fix non integer errror
  - training (gui) - fix mask toggling 
scripts/train.py