          logger.info("===================================================")
  
          keypress = KBHit(is_gui=self._args.redirect_gui)
          err = False
          while True:
              try:
                  if self._args.preview:
                      with self._lock:
 
</s> remove                     "Stop" if self._args.redirect_gui or self._args.colab else "ENTER")
 </s> add                         "Stop" if self._args.redirect_gui or self._args.colab else "ENTER") </s> remove         self._preview_buffer = dict()
 </s> add         self._preview_buffer = {} </s> remove             image_dir = getattr(self._args, "input_{}".format(side))
 </s> add             image_dir = getattr(self._args, f"input_{side}")
        window_created = False
          logger.info("===================================================")
  
          keypress = KBHit(is_gui=self._args.redirect_gui)
        window_created = False
          err = False
          while True:
              try:
                  if self._args.preview:
                      with self._lock:
keep keep add keep keep keep keep keep
 training - Enable resize in popup preview image 
scripts/train.py