Skip to content

Commit

Permalink
typo in min cost selection
Browse files Browse the repository at this point in the history
  • Loading branch information
mittagessen committed Sep 30, 2024
1 parent 6056146 commit 3561357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kraken/lib/train/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def validation_step(self, batch, batch_idx):
if pred_curves:
pred_curves = torch.stack(pred_curves)
cost_curves = torch.cdist(pred_curves, target_curves, p=1).cpu()
costs = cost_curves = [linear_sum_assignment(cost_curves)]
costs = cost_curves[linear_sum_assignment(cost_curves)]
# num of predictions differs from target -> take n best
# predictions and add error penalty term for the rest.
if diff := abs(len(pred_curves) - len(target_curves)):
Expand Down

0 comments on commit 3561357

Please sign in to comment.