              if self._refresh_preview and viewer is not None:
                  if self._args.redirect_gui:  # Remove any gui trigger files following an update
                      print("\n")
                      logger.info("[Preview Updated]")
                      for filename in self._gui_triggers.values():
                          if os.path.isfile(filename):
                              logger.debug("Removing gui trigger file: %s", filename)
                              os.remove(filename)
  
                  self._refresh_preview = False
  
              if save_iteration:
                  logger.debug("Save Iteration: (iteration: %s", iteration)
                  model.save()
 
</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:
 </s> add                 if self._args.preview: </s> remove         is_preview = self._args.preview
        preview_trigger_set = False
 </s> add  </s> remove             for (pos_x, pos_y) in face.aligned.landmarks:
 </s> add             for (pos_x, pos_y) in face.aligned.landmarks.astype("int32"):
              if self._refresh_preview and viewer is not None:
                  if self._args.redirect_gui:  # Remove any gui trigger files following an update
                      print("\n")
                      logger.info("[Preview Updated]")





                  self._refresh_preview = False
  
              if save_iteration:
                  logger.debug("Save Iteration: (iteration: %s", iteration)
                  model.save()
keep keep keep keep 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