Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
mmdetection3d
Commits
6985955d
Commit
6985955d
authored
May 15, 2020
by
zhangwenwei
Browse files
Fix unittest
parent
16202272
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_box3d.py
tests/test_box3d.py
+3
-3
No files found.
tests/test_box3d.py
View file @
6985955d
...
@@ -288,9 +288,9 @@ def test_boxes_conversion():
...
@@ -288,9 +288,9 @@ def test_boxes_conversion():
# Some properties should be the same
# Some properties should be the same
cam_boxes
=
CameraInstance3DBoxes
(
cam_box_tensor
)
cam_boxes
=
CameraInstance3DBoxes
(
cam_box_tensor
)
assert
torch
.
equal
(
cam_boxes
.
height
,
lidar_boxes
.
height
)
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
.
top_height
,
-
lidar_boxes
.
top_height
)
assert
torch
.
equal
(
cam_boxes
.
bottom_height
,
lidar_boxes
.
bottom_height
)
assert
torch
.
equal
(
cam_boxes
.
bottom_height
,
-
lidar_boxes
.
bottom_height
)
assert
torch
.
equal
(
cam_boxes
.
volume
,
lidar_boxes
.
volume
)
assert
torch
.
allclose
(
cam_boxes
.
volume
,
lidar_boxes
.
volume
)
lidar_box_tensor
=
Box3DMode
.
convert
(
cam_box_tensor
,
Box3DMode
.
CAM
,
lidar_box_tensor
=
Box3DMode
.
convert
(
cam_box_tensor
,
Box3DMode
.
CAM
,
Box3DMode
.
LIDAR
)
Box3DMode
.
LIDAR
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment