                      continue
                  if event.summary.value[0].tag == "keras":
                      self._parse_outputs(event)
                  if event.summary.value[0].tag.startswith("batch_"):
                      data[event.step] = self._process_event(event, data.get(event.step, dict()))
  
          except tf_errors.DataLossError as err:
              logger.warning("The logs for Session %s are corrupted and cannot be displayed. "
                             "The totals do not include this session. Original error message: "
                             "'%s'", session_id, str(err))
 
</s> remove         dropped_files = list()
 </s> add         dropped_files = [] </s> remove                 raise FaceswapError(msg)
 </s> add                 raise FaceswapError(msg) from err </s> remove             zip_file = zipfile.ZipFile(self._model_zip_path, "r")
            self._write_model(zip_file)
 </s> add             with zipfile.ZipFile(self._model_zip_path, "r") as zip_file:
                self._write_model(zip_file)
                    data[event.step] = self._process_event(event, data.get(event.step, {}))
                      continue
                  if event.summary.value[0].tag == "keras":
                      self._parse_outputs(event)
                  if event.summary.value[0].tag.startswith("batch_"):
                    data[event.step] = self._process_event(event, data.get(event.step, {}))
  
          except tf_errors.DataLossError as err:
              logger.warning("The logs for Session %s are corrupted and cannot be displayed. "
                             "The totals do not include this session. Original error message: "
                             "'%s'", session_id, str(err))
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 
lib/gui/analysis/event_reader.py