Skip to content

Commit

Permalink
Fix DETR integration test (#12734)
Browse files Browse the repository at this point in the history
  • Loading branch information
LysandreJik authored Jul 15, 2021
1 parent f42d9dc commit f03580f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_modeling_detr.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,4 @@ def test_inference_panoptic_segmentation_head(self):
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))

0 comments on commit f03580f

Please sign in to comment.