Skip to content

Commit

Permalink
fix: increasing training time over epochs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Delplanque committed Nov 30, 2023
1 parent 4baeab1 commit 39e317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animaloc/train/trainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def _train(
wandb.log(loss_dict)

self.losses = sum(loss for loss in loss_dict.values())
batches_losses.append(self.losses)
batches_losses.append(self.losses.detach())

loss_dict_reduced = reduce_dict(loss_dict)
losses_reduced = sum(loss for loss in loss_dict_reduced.values())
Expand Down

0 comments on commit 39e317a

Please sign in to comment.