You need to sign in or sign up before continuing.
Unverified Commit f03580fb authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Fix DETR integration test (#12734)

parent f42d9dcc
...@@ -524,4 +524,4 @@ class DetrModelIntegrationTests(unittest.TestCase): ...@@ -524,4 +524,4 @@ class DetrModelIntegrationTests(unittest.TestCase):
expected_slice_masks = torch.tensor( expected_slice_masks = torch.tensor(
[[-7.7558, -10.8788, -11.9797], [-11.8881, -16.4329, -17.7451], [-14.7316, -19.7383, -20.3004]] [[-7.7558, -10.8788, -11.9797], [-11.8881, -16.4329, -17.7451], [-14.7316, -19.7383, -20.3004]]
).to(torch_device) ).to(torch_device)
self.assertTrue(torch.allclose(outputs.pred_masks[0, 0, :3, :3], expected_slice_masks, atol=1e-4)) self.assertTrue(torch.allclose(outputs.pred_masks[0, 0, :3, :3], expected_slice_masks, atol=1e-3))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment