Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjuleee committed Aug 28, 2024
1 parent 3163800 commit 4e1b810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/core/data/transform_libs/test_torchvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,6 @@ def test_forward(self, keypoint_det_entity) -> None:
)
results = transform(deepcopy(keypoint_det_entity))

assert torch.all(results.bbox_info.center == torch.Tensor([[3.5, 3.5]]))
assert torch.all(results.bbox_info.scale == torch.Tensor([[8.75, 8.75]]))
assert np.array_equal(results.bbox_info.center, np.array([3.5, 3.5]))
assert np.array_equal(results.bbox_info.scale, np.array([8.75, 8.75]))
assert results.keypoints.shape == (4, 2)

0 comments on commit 4e1b810

Please sign in to comment.