Skip to content

Commit 814b4f0

Browse files
committed
slice and size
1 parent 7821157 commit 814b4f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pipelines/pag/test_pag_sd_inpaint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def test_pag_cfg(self):
294294
assert image.shape == (1, 512, 512, 3)
295295
print(image_slice.flatten())
296296
expected_slice = np.array(
297-
[0.41385046, 0.39608297, 0.4360491, 0.26872507, 0.32187328, 0.4242474, 0.2603805, 0.34167895, 0.46561807]
297+
[0.38793945, 0.4111328, 0.47924805, 0.39208984, 0.4165039, 0.41674805, 0.37060547, 0.36791992, 0.40625]
298298
)
299299
assert (
300300
np.abs(image_slice.flatten() - expected_slice).max() < 1e-3
@@ -309,7 +309,7 @@ def test_pag_uncond(self):
309309
image = pipeline(**inputs).images
310310

311311
image_slice = image[0, -3:, -3:, -1].flatten()
312-
assert image.shape == (1, 1024, 1024, 3)
312+
assert image.shape == (1, 512, 512, 3)
313313
expected_slice = np.array(
314314
[0.41597816, 0.39302617, 0.44287828, 0.2687074, 0.28315824, 0.40582314, 0.20877528, 0.2380802, 0.39447647]
315315
)

0 commit comments

Comments
 (0)