"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "116d9f2335914cdc1b156da6d8358031a7e0bf26"
Commit 6985955d authored by zhangwenwei's avatar zhangwenwei
Browse files

Fix unittest

parent 16202272
......@@ -288,9 +288,9 @@ def test_boxes_conversion():
# Some properties should be the same
cam_boxes = CameraInstance3DBoxes(cam_box_tensor)
assert torch.equal(cam_boxes.height, lidar_boxes.height)
assert torch.equal(cam_boxes.top_height, lidar_boxes.top_height)
assert torch.equal(cam_boxes.bottom_height, lidar_boxes.bottom_height)
assert torch.equal(cam_boxes.volume, lidar_boxes.volume)
assert torch.equal(cam_boxes.top_height, -lidar_boxes.top_height)
assert torch.equal(cam_boxes.bottom_height, -lidar_boxes.bottom_height)
assert torch.allclose(cam_boxes.volume, lidar_boxes.volume)
lidar_box_tensor = Box3DMode.convert(cam_box_tensor, Box3DMode.CAM,
Box3DMode.LIDAR)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment