Skip to content

Commit

Permalink
log fix setr
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBG0 committed May 14, 2024
1 parent 94bf3f4 commit 3ace8d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions minerva/models/nets/setr.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,9 @@ def _single_step(self, batch: torch.Tensor, batch_idx: int, step_name: str):

metrics = self._compute_metrics(y_hat[0], y, step_name)
for metric_name, metric_value in metrics.items():
self.log_dict(
{metric_name: metric_value},
self.log(
metric_name,
metric_value,
on_step=False,
on_epoch=True,
prog_bar=True,
Expand Down

0 comments on commit 3ace8d2

Please sign in to comment.