Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

xpass rasanc randomness tests (#2613)

João Gustavo A. Amorimf3129c305bcd
diff --git a/test/geometry/test_ransac.py b/test/geometry/test_ransac.py
index 77d67af78..f97b2f946 100644
--- a/test/geometry/test_ransac.py
+++ b/test/geometry/test_ransac.py
@@ -178,7 +178,7 @@ class TestRANSACFundamental:
assert gross_errors.sum().item() == 0
@pytest.mark.slow
- @pytest.mark.xfail(reason="might fail, because this F-RANSAC is not 7pt")
+ @pytest.mark.xfail(reason="might slightly and randomly imprecise due to RANSAC randomness")
@pytest.mark.parametrize("data", ["loftr_fund"], indirect=True)
def test_real_dirty_8pt(self, device, dtype, data):
torch.random.manual_seed(0)
@@ -199,6 +199,7 @@ class TestRANSACFundamental:
assert gross_errors.sum().item() < 2
@pytest.mark.slow
+ @pytest.mark.xfail(reason="might fail, because this F-RANSAC is not 7pt")
@pytest.mark.parametrize("data", ["loftr_fund"], indirect=True)
def test_real_dirty_7pt(self, device, dtype, data):
torch.random.manual_seed(0)