Skip to content
Snippets Groups Projects
Commit bb734f77 authored by Tamino Huxohl's avatar Tamino Huxohl
Browse files

fix format specifier in snapshot storing

parent 42a1436a
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ class AbstractTraining: ...@@ -78,7 +78,7 @@ class AbstractTraining:
self.store_snapshot("val_min") self.store_snapshot("val_min")
if epoch % self.snapshot_epoch == 0: if epoch % self.snapshot_epoch == 0:
self.store_snapshot(f"{epoch:0d{len(str(self.epochs))}}") self.store_snapshot(f"{epoch:0{len(str(self.epochs))}d}")
for param in self.training_params: for param in self.training_params:
if param.lr_scheduler is not None: if param.lr_scheduler is not None:
......
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