Skip to content

Commit 61ed4c3

Browse files
committed
use mean instead of max in test_stable_diffusion_inpaint_pipeline_k_lms
1 parent 9b1ec08 commit 61ed4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pipelines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,7 @@ def test_stable_diffusion_inpaint_pipeline_k_lms(self):
13681368
image = output.images[0]
13691369

13701370
assert image.shape == (512, 512, 3)
1371-
assert np.abs(expected_image - image).max() < 1e-2
1371+
assert np.abs(expected_image - image).mean() < 1e-2
13721372

13731373
@slow
13741374
def test_stable_diffusion_onnx(self):

0 commit comments

Comments
 (0)