              self._samples.images = self._feeder.compile_sample(None)
              samples = self._samples.show_sample()
              if samples is not None:
                  viewer(samples,
                         "Training - 'S': Save Now. 'R': Refresh Preview. 'M': Toggle Mask. "
                         "'ENTER': Save and Quit")
  
          if timelapse_kwargs:
              self._timelapse.output_timelapse(timelapse_kwargs)
  
      def _log_tensorboard(self, loss):
 
</s> remove                     txt = "  - {}".format(txt[2:])
 </s> add                     txt = f"  - {txt[2:]}" </s> remove             output = list()
 </s> add             output = [] </s> remove             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(is_exit=False)
            elif self._save_now:
                logger.debug("Save Requested: (iteration: %s", iteration)
 </s> add             if save_iteration or self._save_now:
                logger.debug("Saving (save_iterations: %s, save_now: %s) Iteration: "
                             "(iteration: %s)", save_iteration, self._save_now, iteration) </s> remove         self._scaling = scaling
 </s> add  </s> remove         return argparse.HelpFormatter._split_lines(self, text, width)
 </s> add         return argparse.HelpFormatter._split_lines(self,  # pylint: disable=protected-access
                                                   text,
                                                   width)
                       "Training - 'S': Save Now. 'R': Refresh Preview. 'M': Toggle Mask. 'F': "
                       "Toggle Screen Fit-Actual Size. 'ENTER': Save and Quit")
              self._samples.images = self._feeder.compile_sample(None)
              samples = self._samples.show_sample()
              if samples is not None:
                  viewer(samples,
                       "Training - 'S': Save Now. 'R': Refresh Preview. 'M': Toggle Mask. 'F': "
                       "Toggle Screen Fit-Actual Size. 'ENTER': Save and Quit")
                       "Training - 'S': Save Now. 'R': Refresh Preview. 'M': Toggle Mask. 'F': "
                       "Toggle Screen Fit-Actual Size. 'ENTER': Save and Quit")
  
          if timelapse_kwargs:
              self._timelapse.output_timelapse(timelapse_kwargs)
  
      def _log_tensorboard(self, loss):
keep keep keep keep replace replace keep keep keep keep keep
 Live Preview - Replace cv2 with matplotlib viewer 
plugins/train/trainer/_base.py