Skip to content

Commit

Permalink
test actually works (kornia#2510)
Browse files Browse the repository at this point in the history
  • Loading branch information
ducha-aiki committed Aug 11, 2023
1 parent 3c747cc commit 796045f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/feature/test_matching.py
Expand Up @@ -468,11 +468,8 @@ def test_real(self, device, dtype, data):
assert idxs.shape[0] == dists.shape[0]
assert dists.shape[0] <= data_dev['descs1'].shape[0]
assert dists.shape[0] <= data_dev['descs2'].shape[0]
# key doesn't exist in data_dev
# expected_idxs = data_dev['lightglue_disk_idxs'].long()
data_dev['expected_idxs'].long()
# TODO: fix this
# assert_close(idxs, expected_idxs, rtol=1e-4, atol=1e-4)
expected_idxs = data_dev['lightglue_disk_idxs'].long()
assert_close(idxs, expected_idxs, rtol=1e-4, atol=1e-4)

@pytest.mark.parametrize("data", ["lightglue_idxs"], indirect=True)
def test_single_nocrash(self, device, dtype, data):
Expand Down

0 comments on commit 796045f

Please sign in to comment.