Skip to content

Commit

Permalink
Fixed the expected values after for img2img slice (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
imangohari1 authored Sep 25, 2024
1 parent d28bae9 commit b062ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_diffusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3401,7 +3401,7 @@ def test_stable_diffusion_xl_img2img_euler(self):

self.assertEqual(image.shape, (1, 32, 32, 3))

expected_slice = np.array([0.4664, 0.4886, 0.4403, 0.6902, 0.5592, 0.4534, 0.5931, 0.5951, 0.5224])
expected_slice = np.array([0.4925, 0.5007, 0.6594, 0.5544, 0.4423, 0.5585, 0.4643, 0.5444, 0.5376])
self.assertLess(np.abs(image_slice.flatten() - expected_slice).max(), 1e-2)


Expand Down

0 comments on commit b062ae1

Please sign in to comment.