Skip to content
Snippets Groups Projects
Commit 06153869 authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
Browse files

Reload model weights if model checkpoint is used

parent a1d05007
No related branches found
No related tags found
No related merge requests found
......@@ -725,6 +725,9 @@ class ClassificationProject(object):
if not self.use_modelcheckpoint:
logger.info("Save weights")
self.model.save_weights(os.path.join(self.project_dir, "weights.h5"))
else:
self.model.load_weights(os.path.join(self.project_dir, "weights.h5"))
logger.info("Reloading weights, since we are using model checkpoint!")
self.total_epochs += epochs
self._write_info("epochs", self.total_epochs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment