Skip to content

Commit 62b64c6

Browse files
committed
fixing some tests
1 parent 20f788b commit 62b64c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_augmentations/test_mosaic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
def test_mosaic4():
1818
img = (np.random.rand(HEIGHT, WIDTH, 3) * 255).astype(np.uint8)
19-
mosaic = mosaic4([img, img, img, img], HEIGHT, WIDTH)
19+
mosaic = mosaic4([img, img, img, img], HEIGHT, WIDTH, 0, 0, 0)
2020
assert mosaic.shape == (HEIGHT, WIDTH, 3)
2121

2222

2323
def test_bbox_mosaic4():
2424
bbox = (0, 0, WIDTH, HEIGHT)
2525
for i in range(4):
2626
mosaic_bbox = bbox_mosaic4(
27-
bbox, HEIGHT // 2, WIDTH // 2, i, HEIGHT, WIDTH
27+
bbox, HEIGHT // 2, WIDTH // 2, i, HEIGHT, WIDTH, 0, 0
2828
)
2929
assert pytest.approx(mosaic_bbox, abs=0.5) == (
3030
0,
@@ -45,7 +45,7 @@ def test_keypoint_mosaic4():
4545
]
4646
):
4747
mosaic_keypoint = keypoint_mosaic4(
48-
keypoint, HEIGHT // 2, WIDTH // 2, i, HEIGHT, WIDTH
48+
keypoint, HEIGHT // 2, WIDTH // 2, i, HEIGHT, WIDTH, 0, 0
4949
)
5050
assert pytest.approx(mosaic_keypoint, abs=0.25) == (w, h, 0, 0)
5151

0 commit comments

Comments
 (0)