              self._run_training_cycle(model, trainer)
          except KeyboardInterrupt:
              try:
                  logger.debug("Keyboard Interrupt Caught. Saving Weights and exiting")
                  model.save(is_exit=True)
                  trainer.clear_tensorboard()
              except KeyboardInterrupt:
                  logger.info("Saving model weights has been cancelled!")
              sys.exit(0)
          except Exception as err:
 
</s> remove             model = kmodels.load_model(self._filename, compile=False)
 </s> add             model = kmodels.load_model(self.filename, compile=False) </s> remove             self._plugin.model.save(self._filename, include_optimizer=include_optimizer)
 </s> add             self._plugin.model.save(self.filename, include_optimizer=include_optimizer) </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                 self._plugin.model.save(self._filename, include_optimizer=False)
 </s> add                 self._plugin.model.save(self.filename, include_optimizer=False)
                model.io.save(is_exit=True)
              self._run_training_cycle(model, trainer)
          except KeyboardInterrupt:
              try:
                  logger.debug("Keyboard Interrupt Caught. Saving Weights and exiting")
                model.io.save(is_exit=True)
                  trainer.clear_tensorboard()
              except KeyboardInterrupt:
                  logger.info("Saving model weights has been cancelled!")
              sys.exit(0)
          except Exception as 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 
scripts/train.py