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
e93a77f0
Commit
e93a77f0
authored
Sep 22, 2021
by
ChaimZhu
Committed by
Tai-Wang
Sep 24, 2021
Browse files
[Fix] Fix visualization in KITTI dataset (#956)
* fix bug to support kitti vis * fix
parent
1bc1a1ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mmdet3d/core/visualizer/image_vis.py
mmdet3d/core/visualizer/image_vis.py
+4
-1
No files found.
mmdet3d/core/visualizer/image_vis.py
View file @
e93a77f0
...
...
@@ -192,7 +192,10 @@ def draw_camera_bbox3d_on_img(bboxes3d,
points_3d
=
corners_3d
.
reshape
(
-
1
,
3
)
if
not
isinstance
(
cam2img
,
torch
.
Tensor
):
cam2img
=
torch
.
from_numpy
(
np
.
array
(
cam2img
))
cam2img
=
cam2img
.
reshape
(
3
,
3
).
float
().
cpu
()
assert
(
cam2img
.
shape
==
torch
.
Size
([
3
,
3
])
or
cam2img
.
shape
==
torch
.
Size
([
4
,
4
]))
cam2img
=
cam2img
.
float
().
cpu
()
# project to 2d to get image coords (uv)
uv_origin
=
points_cam2img
(
points_3d
,
cam2img
)
...
...
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