Update InstructBLIP & Align values after rescale update (#25209)
* Update InstructBLIP values Note: the tests are not independent. Running the test independentely produces different logits compared to running all the integration tests * Update test values after rescale update * Remove left over commented out code * Revert to previous rescaling logic * Update rescale tests
This commit is contained in:
@@ -200,8 +200,8 @@ class EfficientNetImageProcessorTest(ImageProcessingSavingTestMixin, unittest.Te
|
||||
|
||||
image_processor = self.image_processing_class(**self.image_processor_dict)
|
||||
|
||||
rescaled_image = image_processor.rescale(image, scale=1 / 255)
|
||||
expected_image = (image * (2 / 255.0)).astype(np.float32) - 1
|
||||
rescaled_image = image_processor.rescale(image, scale=1 / 127.5)
|
||||
expected_image = (image * (1 / 127.5)).astype(np.float32) - 1
|
||||
self.assertTrue(np.allclose(rescaled_image, expected_image))
|
||||
|
||||
rescaled_image = image_processor.rescale(image, scale=1 / 255, offset=False)
|
||||
|
||||
Reference in New Issue
Block a user