mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
test tolerance loosenings
Summary: Increase some test tolerances so that they pass in more situations, and re-enable two tests. Reviewed By: nikhilaravi Differential Revision: D31379717 fbshipit-source-id: 06a25470cc7b6d71cd639d9fd7df500d4b84c079
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8fa438cbda
commit
b26f4bc33a
@@ -31,7 +31,6 @@ class TestCamerasAlignment(TestCaseMixin, unittest.TestCase):
|
||||
"""
|
||||
Checks the corresponding_cameras_alignment function.
|
||||
"""
|
||||
self.skipTest("Temporarily disabled pending investigation")
|
||||
device = torch.device("cuda:0")
|
||||
|
||||
# try few different random setups
|
||||
@@ -134,10 +133,10 @@ class TestCamerasAlignment(TestCaseMixin, unittest.TestCase):
|
||||
)
|
||||
elif mode == "extrinsics":
|
||||
angle_err = so3_relative_angle(
|
||||
cameras_aligned.R, cameras_tgt.R
|
||||
cameras_aligned.R, cameras_tgt.R, cos_angle=True
|
||||
).mean()
|
||||
self.assertClose(
|
||||
angle_err, torch.zeros_like(angle_err), atol=add_noise * 10.0
|
||||
angle_err, torch.ones_like(angle_err), atol=add_noise * 0.03
|
||||
)
|
||||
self.assertNormsClose(
|
||||
cameras_aligned.T, cameras_tgt.T, _rmse, atol=add_noise * 7.0
|
||||
|
||||
Reference in New Issue
Block a user