Fix DETR integration test (#12734)

This commit is contained in:
Lysandre Debut
2021-07-15 17:48:37 +02:00
committed by GitHub
parent f42d9dcc0e
commit f03580fb02

View File

@@ -524,4 +524,4 @@ class DetrModelIntegrationTests(unittest.TestCase):
expected_slice_masks = torch.tensor(
[[-7.7558, -10.8788, -11.9797], [-11.8881, -16.4329, -17.7451], [-14.7316, -19.7383, -20.3004]]
).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))