Skip to content

Commit

Permalink
Add additional context to testing non sequential ids
Browse files Browse the repository at this point in the history
  • Loading branch information
msschwartz21 authored Dec 17, 2024
1 parent 95e3252 commit dd1d438
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/matchers/test_iou.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ def test_input_error(self):
"data", [ex_segs.no_overlap_2d(), ex_segs.no_overlap_3d()], ids=["2D", "3D"]
)
def test_non_sequential(self, data):
# test when the segmentation ids are high numbers (the lower numbers should never appear)
"""test when the segmentation ids are high numbers (the lower numbers should never appear)
At one point dummy nodes introduced from padding the iou matrix were appearing in the final
matching
See https://github.com/Janelia-Trackathon-2023/traccuracy/pull/173#discussion_r1882231345
"""
gt, pred = data[0], data[1]
# Change id of segmentation to non sequntial high value
gt[gt == 1] = 100
Expand Down

1 comment on commit dd1d438

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Mean (s) BASE 48351ed Mean (s) HEAD dd1d438 Percent Change
test_load_gt_ctc_data[2d] 5.54485 5.60714 1.12
test_load_gt_ctc_data[3d] 18.9058 19.5102 3.2
test_load_pred_ctc_data[2d] 1.12673 1.12008 -0.59
test_ctc_checks[2d] 0.74564 0.74636 0.1
test_ctc_checks[3d] 9.65703 9.87739 2.28
test_ctc_matcher[2d] 1.5411 1.50797 -2.15
test_ctc_matcher[3d] 17.0307 16.985 -0.27
test_ctc_metrics[2d] 0.26021 0.29341 12.76
test_ctc_metrics[3d] 4.03958 4.23698 4.89
test_iou_matcher[2d] 1.59984 1.63173 1.99
test_iou_matcher[3d] 17.8591 18.2988 2.46
test_iou_div_metrics[2d] 0.07028 0.07498 6.69
test_iou_div_metrics[3d] 0.69505 0.73764 6.13

Please sign in to comment.