Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumjot committed Nov 16, 2023
1 parent 88fd65c commit 62f7eab
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ def test_calculate(image_pair, strict):
# calculate the real number of true postives based on strict matching
real_tp = int(IoU > result.iou_threshold) if strict else int(IoU > 0)

import matplotlib.pyplot as plt

fig, ax = plt.subplots(1, 2)
ax[0].imshow(y_true)
ax[1].imshow(y_pred)
ax[1].set_title(f"IoU: {IoU}, threshold: {result.iou_threshold}")
plt.show()

assert result.n_true_labels == 1
assert result.n_pred_labels == 1
assert result.n_true_positives == real_tp
Expand Down

0 comments on commit 62f7eab

Please sign in to comment.