          self._output_file = str(output)
          logger.debug("Time-lapse output set to '%s'", self._output_file)
  
          # Rewrite paths to pull from the training images so mask and face data can be accessed
          images = dict()
          for side, input_ in zip(("a", "b"), (input_a, input_b)):
              training_path = os.path.dirname(self._image_paths[side][0])
              images[side] = [os.path.join(training_path, os.path.basename(pth))
                              for pth in get_image_paths(input_)]
  
 
</s> remove         samples = dict()
        images = dict()
        masks = dict()
 </s> add         samples = {}
        images = {}
        masks = {} </s> remove     dir_contents = list()
 </s> add     dir_contents = [] </s> remove         output = "[{}] [#{:05d}] {}".format(timestamp, self._model.iterations, output)
        print("\r{}".format(output), end="")
 </s> add         output = f"[{timestamp}] [#{self._model.iterations:05d}] {output}"
        print(f"\r{output}", end="") </s> remove         retval = dict()
 </s> add         retval = {} </s> remove                 if not split_output:  # Rename losses to reflect the side's output
                    loss_name = f"{loss_name.replace('_both', '')}_{side}"
 </s> add                 if loss_name[-2:] not in ("_a", "_b"):  # Rename losses to reflect the side output
                    new_name = f"{loss_name.replace('_both', '')}_{side}"
                    logger.debug("Renaming loss output from '%s' to '%s'", loss_name, new_name)
                    loss_name = new_name
        images = {}
          self._output_file = str(output)
          logger.debug("Time-lapse output set to '%s'", self._output_file)
  
          # Rewrite paths to pull from the training images so mask and face data can be accessed
        images = {}
          for side, input_ in zip(("a", "b"), (input_a, input_b)):
              training_path = os.path.dirname(self._image_paths[side][0])
              images[side] = [os.path.join(training_path, os.path.basename(pth))
                              for pth in get_image_paths(input_)]
  
keep keep keep keep replace keep keep keep keep keep
 Update code to support Tensorflow versions up to 2.8 (#1213)

* Update maximum tf version in setup + requirements

* - bump max version of tf version in launcher
- standardise tf version check

* update keras get_custom_objects  for tf>2.6

* bugfix: force black text in GUI file dialogs (linux)

* dssim loss - Move to stock tf.ssim function

* Update optimizer imports for compatibility

* fix logging for tf2.8

* Fix GUI graphing for TF2.8

* update tests

* bump requirements.txt versions

* Remove limit on nvidia-ml-py

* Graphing bugfixes
  - Prevent live graph from displaying if data not yet available

* bugfix: Live graph. Collect loss labels correctly

* fix: live graph - swallow inconsistent loss errors

* Bugfix: Prevent live graph from clearing during training

* Fix graphing for AMD 
plugins/train/trainer/_base.py