          try:
              model = kmodels.load_model(self._filename, compile=False)
          except RuntimeError as err:
              if "unable to get link info" in str(err).lower():
                  msg = (f"Unable to load the model from '{self._filename}'. This may be a "
                         "temporary error but most likely means that your model has corrupted.\n"
                         "You can try to load the model again but if the problem persists you "
                         "should use the Restore Tool to restore your model from backup.\n"
                         f"Original error: {str(err)}")
                  raise FaceswapError(msg) from err
 
</s> remove                 msg = (f"Unable to load the model from '{self._filename}'. This may be a "
 </s> add                 msg = (f"Unable to load the model from '{self.filename}'. This may be a " </s> remove             model = kmodels.load_model(self._filename, compile=False)
 </s> add             model = kmodels.load_model(self.filename, compile=False) </s> remove         logger.info("Loaded model from disk: '%s'", self._filename)
 </s> add         logger.info("Loaded model from disk: '%s'", self.filename) </s> remove #: plugins/train/_config.py:341
 </s> add #: plugins/train/_config.py:388 </s> remove #: lib/cli/args.py:963
 </s> add #: lib/cli/args.py:962
                msg = (f"Unable to load the model from '{self.filename}'. This may be a "
          try:
              model = kmodels.load_model(self._filename, compile=False)
          except RuntimeError as err:
              if "unable to get link info" in str(err).lower():
                msg = (f"Unable to load the model from '{self.filename}'. This may be a "
                         "temporary error but most likely means that your model has corrupted.\n"
                         "You can try to load the model again but if the problem persists you "
                         "should use the Restore Tool to restore your model from backup.\n"
                         f"Original error: {str(err)}")
                  raise FaceswapError(msg) from err
keep keep keep keep replace keep keep keep keep keep
 Learning Rate finder (#1341)

* Add LR Finder support structure

* Move trainer.Feeder to lib.training.generator

* Expose model.io

* Add lr_finder

* Update docs and locales

* Pre-PR fixups
  - Fix training graph not displaying
  - CI fixes
  - Switch lr finder progress to tqdm
  - Exit lr finder early on NaN
  - Display lr finder progress in GUI 
plugins/train/model/_base/io.py