use torch.testing.assertclose instead to get more details about error in cis (#35659)
* use torch.testing.assertclose instead to get more details about error in cis * fix * style * test_all * revert for I bert * fixes and updates * more image processing fixes * more image processors * fix mamba and co * style * less strick * ok I won't be strict * skip and be done * up
This commit is contained in:
@@ -231,11 +231,11 @@ class SegGptImageProcessingTest(ImageProcessingTestMixin, unittest.TestCase):
|
||||
]
|
||||
)
|
||||
|
||||
self.assertTrue(torch.allclose(inputs.pixel_values[0, :, :3, :3], expected_pixel_values, atol=1e-4))
|
||||
self.assertTrue(
|
||||
torch.allclose(inputs.prompt_pixel_values[0, :, :3, :3], expected_prompt_pixel_values, atol=1e-4)
|
||||
torch.testing.assert_close(inputs.pixel_values[0, :, :3, :3], expected_pixel_values, rtol=1e-4, atol=1e-4)
|
||||
torch.testing.assert_close(
|
||||
inputs.prompt_pixel_values[0, :, :3, :3], expected_prompt_pixel_values, rtol=1e-4, atol=1e-4
|
||||
)
|
||||
self.assertTrue(torch.allclose(inputs.prompt_masks[0, :, :3, :3], expected_prompt_masks, atol=1e-4))
|
||||
torch.testing.assert_close(inputs.prompt_masks[0, :, :3, :3], expected_prompt_masks, rtol=1e-4, atol=1e-4)
|
||||
|
||||
def test_prompt_mask_equivalence(self):
|
||||
image_processor = self.image_processing_class(**self.image_processor_dict)
|
||||
|
||||
Reference in New Issue
Block a user