Skip to content

Commit

Permalink
Fix bug NLLLoss
Browse files Browse the repository at this point in the history
  • Loading branch information
jejon committed Oct 3, 2024
1 parent 5a992f6 commit 69b1ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/landmarker/losses/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def forward(self, output, target):
output = self.log_softmax(output)
else:
output = torch.log(output.double())
nll = -target * torch.log(output.double())
nll = -target * output.double()
if self.spatial_dims == 2:
dim = (2, 3)
else:
Expand Down

0 comments on commit 69b1ae9

Please sign in to comment.