π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
Fix/find homography dlt iterated gradcheck fail (#1032)
Daniel Koguciuk58f11c86bc21
diff --git a/test/geometry/test_homography.py b/test/geometry/test_homography.pyindex 0f1046f38..d9a8cf2b9 100644--- a/test/geometry/test_homography.py+++ b/test/geometry/test_homography.py@@ -66,8 +66,8 @@ class TestFindHomographyDLT:kornia.transform_points(dst_homo_src, points_src), points_dst, rtol=1e-3, atol=1e-4)@pytest.mark.grad+ @pytest.mark.skipif(torch.__version__ < '1.7', reason="pytorch bug of incopatible types: #33546 fixed in v1.7")def test_gradcheck(self, device):-# Save initial seedinitial_seed = torch.random.initial_seed()max_number_of_checks = 10@@ -137,6 +137,7 @@ class TestFindHomographyDLTIter:kornia.transform_points(dst_homo_src, points_src), points_dst, rtol=1e-3, atol=1e-4)@pytest.mark.grad+ @pytest.mark.skipif(torch.__version__ < '1.7', reason="pytorch bug of incopatible types: #33546 fixed in v1.7")def test_gradcheck(self, device):# Save initial seed