Skip to content

Commit

Permalink
this fixes the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wiederm committed Nov 7, 2024
1 parent 8b23f18 commit 667909f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modelforge/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,7 @@ def _log_figures_for_each_phase(
# Log outlier error counts for non-training phases
if phase != "train":
self._identify__and_log_top_k_errors(errors, gathered_indices, phase)
self.log_dict(
self.outlier_errors_over_epochs, on_epoch=True, sync_dist=True
)
self.log_dict(self.outlier_errors_over_epochs, on_epoch=True)

def _identify__and_log_top_k_errors(
self,
Expand Down Expand Up @@ -1299,7 +1297,6 @@ def on_train_epoch_end(self):
self.log(
f"loss/{key}/weight",
weight[self.current_epoch],
sync_dist=True,
)

def _log_learning_rate(self):
Expand All @@ -1311,7 +1308,6 @@ def _log_learning_rate(self):
sch.get_last_lr()[0],
on_epoch=True,
prog_bar=True,
sync_dist=True,
)
except AttributeError:
pass
Expand Down

0 comments on commit 667909f

Please sign in to comment.