Skip to content

Commit ff81715

Browse files
fix test
1 parent 678b88d commit ff81715

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_transforms_v2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7033,9 +7033,11 @@ def test_parallelogram_to_bounding_boxes(input_size, device):
70337033
dtype=torch.float32,
70347034
)
70357035
expected = torch.tensor(
7036-
[[0, 4, 4, 0, 5, 1, 1, 5], [0, 1, 1, 0, 5, 4, 3, 4]],
7036+
[[0, 4, 4, 0, 5, 1, 1, 5], [0, 1, 1, 0, 5, 4, 4, 5]],
70377037
dtype=torch.float32,
70387038
)
7039+
actual = _parallelogram_to_bounding_boxes(parallelogram)
7040+
torch.testing.assert_close(actual, expected)
70397041

70407042

70417043
@pytest.mark.parametrize("image_type", (PIL.Image, torch.Tensor, tv_tensors.Image))

0 commit comments

Comments
 (0)