Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

ci: record the 7-point half-precision tests as accuracy failures after #5031 (#5075)

Dmytro Mishkince747c2f97e8
diff --git a/docs/source/get-started/precision.rst b/docs/source/get-started/precision.rst
index e2005c1a3..d95f638aa 100644
--- a/docs/source/get-started/precision.rst
+++ b/docs/source/get-started/precision.rst
@@ -74,10 +74,12 @@ precision, so the table says nothing about those backends.
* - ``kornia.geometry.epipolar``
- ⚠️ Partial
- ⚠️ Partial
- - 58 / 56
- - ``find_fundamental``, ``find_essential``, ``decompose_essential_matrix``, ``motion_from_essential*``
- and ``KRt_from_projection`` raise ``NotImplementedError``: they call ``lu``, ``eigh`` or QR, which have
- no CPU half-precision kernels.
+ - 53 / 51
+ - ``find_essential``, ``decompose_essential_matrix``, ``motion_from_essential*``, ``KRt_from_projection``
+ and the weighted eight-point ``find_fundamental`` raise ``NotImplementedError``: they call ``lu``, ``eigh``
+ or QR, which have no CPU half-precision kernels. The unweighted eight-point and the seven-point
+ ``find_fundamental`` factorize in float32 or float64 and return a half-precision ``F``, whose accuracy the
+ half-precision inputs limit.
* - ``kornia.geometry.homography``
- ⚠️ Partial
- ⚠️ Partial
@@ -110,8 +112,8 @@ precision, so the table says nothing about those backends.
* - ``kornia.geometry.ransac``
- ⚠️ Partial
- ⚠️ Partial
- - 4 / 4
- - The essential and fundamental models raise through the epipolar solvers.
+ - 3 / 3
+ - The essential model raises through the epipolar solvers.
* - ``kornia.geometry`` (other)
- ⚠️ Partial
- ⚠️ Partial
diff --git a/testing/half_precision_xfails/cpu_bfloat16.txt b/testing/half_precision_xfails/cpu_bfloat16.txt
index 5df4dd1c2..18f42e2c4 100644
--- a/testing/half_precision_xfails/cpu_bfloat16.txt
+++ b/testing/half_precision_xfails/cpu_bfloat16.txt
@@ -152,7 +152,7 @@ call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::Tes
call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-bfloat16-15]
call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-bfloat16-20]
call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestComputeCorrespondEpilines::test_opencv[cpu-bfloat16]
-call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-bfloat16]
+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-bfloat16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_opencv_svd[cpu-bfloat16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-bfloat16-1-8]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-bfloat16-2-9]
@@ -160,7 +160,7 @@ call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::T
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-bfloat16-3-10]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_smoke[cpu-bfloat16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson[cpu-bfloat16]
-call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-bfloat16]
+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-bfloat16]
call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentlFromEssential::test_from_to_essential[cpu-bfloat16]
call builtins.AssertionError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_projection_from_krt[cpu-bfloat16]
call builtins.NotImplementedError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_shape[cpu-bfloat16-1]
diff --git a/testing/half_precision_xfails/cpu_float16.txt b/testing/half_precision_xfails/cpu_float16.txt
index 97979ee7d..5719b42e7 100644
--- a/testing/half_precision_xfails/cpu_float16.txt
+++ b/testing/half_precision_xfails/cpu_float16.txt
@@ -256,7 +256,7 @@ call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::Tes
call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-float16-15]
call builtins.NotImplementedError tests/geometry/epipolar/test_essential.py::TestMotionFromEssentialChooseSolution::test_unbatched[cpu-float16-20]
call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestComputeCorrespondEpilines::test_opencv[cpu-float16]
-call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-float16]
+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_7point_opencv[cpu-float16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_opencv_svd[cpu-float16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-float16-1-8]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape[cpu-float16-2-9]
@@ -264,7 +264,7 @@ call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::T
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_shape_noweights[cpu-float16-3-10]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_smoke[cpu-float16]
call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson[cpu-float16]
-call builtins.NotImplementedError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-float16]
+call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFindFundamental::test_synthetic_sampson_7point[cpu-float16]
call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentalFromProjections::test_batch_support_check[cpu-float16]
call builtins.AssertionError tests/geometry/epipolar/test_fundamental.py::TestFundamentlFromEssential::test_from_to_essential[cpu-float16]
call builtins.AssertionError tests/geometry/epipolar/test_projection.py::TestKRtFromProjection::test_projection_from_krt[cpu-float16]