Skip to content

Commit 14a6e37

Browse files
saran-tcopybara-github
authored andcommitted
Increase image golden test tolerance.
This accounts for the difference between swrast and llvmpipe software rendering drivers from Mesa. PiperOrigin-RevId: 570365527 Change-Id: I2b4d072c384a7056ba59f6fab6654d2c7310f160
1 parent af46387 commit 14a6e37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dm_control/mujoco/testing/image_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def compute_rms(image1, image2):
203203
return np.sqrt(float(sum_of_squares) / abs_diff.size)
204204

205205

206-
def assert_images_close(expected, actual, tolerance=10.):
206+
def assert_images_close(expected, actual, tolerance=23.5):
207207
"""Tests whether two images are almost equal.
208208
209209
Args:

0 commit comments

Comments
 (0)