google-research / multinerf

A Code Release for Mip-NeRF 360, Ref-NeRF, and RawNeRF
Apache License 2.0
3.57k stars 338 forks source link

terminate called without an active exception and AssertionError: Not equal to tolerance rtol=1e-05, atol=1e-05 #71

Open zerolfq opened 1 year ago

zerolfq commented 1 year ago

Ran 1 test in 1.783s

OK ....

Ran 4 tests in 9.689s

OK ...............................Mean Error = 0.0803162083029747, Tolerance = 0.1 .Mean Error = 0.08638705313205719, Tolerance = 0.1 ........................

Ran 56 tests in 79.266s

OK ............PE of degree 5 has a maximum error of 2.5369226932525635e-06 .PE of degree 10 has a maximum error of 6.4849853515625e-05 .PE of degree 15 has a maximum error of 0.002378210425376892 .PE of degree 20 has a maximum error of 0.11622805148363113 .PE of degree 25 has a maximum error of 1.999955415725708 .PE of degree 30 has a maximum error of 1.999970555305481 ...F

FAIL: test_track_linearize (tests.coord_test.CoordTest) tests.coord_test.CoordTest.test_track_linearize

Traceback (most recent call last): File "/home/xyz/Github/multinerf/tests/coord_test.py", line 176, in test_track_linearize np.testing.assert_allclose(fn_cov, fn_cov_true, atol=1e-5, rtol=1e-5) File "/home/xyz/anaconda3/envs/multinerf/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 1527, in assert_allclose assert_array_compare(compare, actual, desired, err_msg=str(err_msg), File "/home/xyz/anaconda3/envs/multinerf/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare raise AssertionError(msg) AssertionError: Not equal to tolerance rtol=1e-05, atol=1e-05

Mismatched elements: 174 / 180 (96.7%) Max absolute difference: 0.02578354 Max relative difference: 0.04063947 x: array([[[ 5.945152, 15.000022, -6.808542], [ 15.000022, 45.419266, -22.536894], [ -6.808541, -22.536898, 15.313396]],... y: array([[[ 5.945051, 15.003154, -6.807432], [ 15.000807, 45.431286, -22.5307 ], [ -6.812711, -22.541422, 15.3137 ]],...


Ran 21 tests in 12.886s

FAILED (failures=1) F.....

FAIL: test_color_correction (tests.image_test.ImageTest) tests.image_test.ImageTest.test_color_correction Test that color correction can undo a CCM + quadratic warp + shift.

Traceback (most recent call last): File "/home/xyz/Github/multinerf/tests/image_test.py", line 58, in test_color_correction np.testing.assert_allclose(im0_cc, im1, atol=1E-5, rtol=1E-5) File "/home/xyz/anaconda3/envs/multinerf/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 1527, in assert_allclose assert_array_compare(compare, actual, desired, err_msg=str(err_msg), File "/home/xyz/anaconda3/envs/multinerf/lib/python3.9/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare raise AssertionError(msg) AssertionError: Not equal to tolerance rtol=1e-05, atol=1e-05

Mismatched elements: 30443 / 49152 (61.9%) Max absolute difference: 0.00026155 Max relative difference: 0.3005619 x: array([[[5.805840e-01, 0.000000e+00, 3.095636e-01], [2.756406e-01, 3.962244e-01, 1.220395e-06], [4.157831e-01, 0.000000e+00, 5.082899e-01],... y: array([[[5.807893e-01, 0.000000e+00, 3.094258e-01], [2.757060e-01, 3.962249e-01, 0.000000e+00], [4.156594e-01, 0.000000e+00, 5.080539e-01],...


Ran 6 tests in 4.122s

FAILED (failures=1) ..

Ran 2 tests in 4.308s

OK .

Ran 1 test in 0.238s

OK .

Ran 1 test in 1.271s

OK terminate called without an active exception ./scripts/run_all_unit_tests.sh:行 24: 97485 已放弃 (核心已转储) python -m unittest tests.datasets_test .......

Ran 7 tests in 3.949s

OK ..........................................

Ran 42 tests in 32.406s

OK

I ran test.sh and found these problems. I hope you can help me

jonbarron commented 1 year ago

Weird, sounds like the tolerances are a little too tight for whatever hardware you're running on. I wouldn't worry about it, just ignore these tests. Or feel free to increase the tolerances to whatever causes these tests to pass and submit a CL?