                      print("\n")
                      logger.info("Refresh preview requested")
                      self._refresh_preview = True
  
                  # Console Monitor
                  if keypress.kbhit():
                      console_key = keypress.getch()
                      if console_key in ("\n", "\r"):
 
</s>
                if is_preview and cv_key == ord("t"):
                    print("\n")
                    logger.info("Toggle mask display requested")
                    self._toggle_preview_mask = True
                    self._refresh_preview = True
                      print("\n")
                      logger.info("Refresh preview requested")
                      self._refresh_preview = True
                if is_preview and cv_key == ord("t"):
                    print("\n")
                    logger.info("Toggle mask display requested")
                    self._toggle_preview_mask = True
                    self._refresh_preview = True
  
                  # Console Monitor
                  if keypress.kbhit():
                      console_key = keypress.getch()
                      if console_key in ("\n", "\r"):
keep keep add keep keep keep keep keep
 - added push t to disable mask display at preview window

trsprmvd

- added extra checks for mask presence in the set
scripts/train.py