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
0cd000bf
".github/git@developer.sourcefind.cn:change/sglang.git" did not exist on "97589a60a2cf2ef75d26ca0de9a78f30e2b63c4e"
Unverified
Commit
0cd000bf
authored
Nov 13, 2021
by
Tai-Wang
Committed by
GitHub
Nov 13, 2021
Browse files
Fix incorrect velo indexing when formating boxes on nuScenes (#1049)
parent
45d98602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet3d/datasets/nuscenes_mono_dataset.py
mmdet3d/datasets/nuscenes_mono_dataset.py
+1
-1
No files found.
mmdet3d/datasets/nuscenes_mono_dataset.py
View file @
0cd000bf
...
@@ -776,7 +776,7 @@ def nusc_box_to_cam_box3d(boxes):
...
@@ -776,7 +776,7 @@ def nusc_box_to_cam_box3d(boxes):
dims
=
torch
.
Tensor
([
b
.
wlh
for
b
in
boxes
]).
view
(
-
1
,
3
)
dims
=
torch
.
Tensor
([
b
.
wlh
for
b
in
boxes
]).
view
(
-
1
,
3
)
rots
=
torch
.
Tensor
([
b
.
orientation
.
yaw_pitch_roll
[
0
]
rots
=
torch
.
Tensor
([
b
.
orientation
.
yaw_pitch_roll
[
0
]
for
b
in
boxes
]).
view
(
-
1
,
1
)
for
b
in
boxes
]).
view
(
-
1
,
1
)
velocity
=
torch
.
Tensor
([
b
.
velocity
[:
2
]
for
b
in
boxes
]).
view
(
-
1
,
2
)
velocity
=
torch
.
Tensor
([
b
.
velocity
[
0
:
:
2
]
for
b
in
boxes
]).
view
(
-
1
,
2
)
# convert nusbox to cambox convention
# convert nusbox to cambox convention
dims
[:,
[
0
,
1
,
2
]]
=
dims
[:,
[
1
,
2
,
0
]]
dims
[:,
[
0
,
1
,
2
]]
=
dims
[:,
[
1
,
2
,
0
]]
...
...
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