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
OpenPCDet
Commits
c37a7a1d
Unverified
Commit
c37a7a1d
authored
Nov 27, 2020
by
Shaoshuai Shi
Committed by
GitHub
Nov 27, 2020
Browse files
bugfixed: add num_points_in_gt to the waymo_infos for evaluation (#383)
parent
59496284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pcdet/datasets/waymo/waymo_utils.py
pcdet/datasets/waymo/waymo_utils.py
+3
-1
No files found.
pcdet/datasets/waymo/waymo_utils.py
View file @
c37a7a1d
...
@@ -23,7 +23,7 @@ WAYMO_CLASSES = ['unknown', 'Vehicle', 'Pedestrian', 'Sign', 'Cyclist']
...
@@ -23,7 +23,7 @@ WAYMO_CLASSES = ['unknown', 'Vehicle', 'Pedestrian', 'Sign', 'Cyclist']
def
generate_labels
(
frame
):
def
generate_labels
(
frame
):
obj_name
,
difficulty
,
dimensions
,
locations
,
heading_angles
=
[],
[],
[],
[],
[]
obj_name
,
difficulty
,
dimensions
,
locations
,
heading_angles
=
[],
[],
[],
[],
[]
tracking_difficulty
,
speeds
,
accelerations
,
obj_ids
=
[],
[],
[],
[]
tracking_difficulty
,
speeds
,
accelerations
,
obj_ids
=
[],
[],
[],
[]
num_points_in_gt
=
[]
laser_labels
=
frame
.
laser_labels
laser_labels
=
frame
.
laser_labels
for
i
in
range
(
len
(
laser_labels
)):
for
i
in
range
(
len
(
laser_labels
)):
box
=
laser_labels
[
i
].
box
box
=
laser_labels
[
i
].
box
...
@@ -36,6 +36,7 @@ def generate_labels(frame):
...
@@ -36,6 +36,7 @@ def generate_labels(frame):
dimensions
.
append
([
box
.
length
,
box
.
width
,
box
.
height
])
# lwh in unified coordinate of OpenPCDet
dimensions
.
append
([
box
.
length
,
box
.
width
,
box
.
height
])
# lwh in unified coordinate of OpenPCDet
locations
.
append
(
loc
)
locations
.
append
(
loc
)
obj_ids
.
append
(
laser_labels
[
i
].
id
)
obj_ids
.
append
(
laser_labels
[
i
].
id
)
num_points_in_gt
.
append
(
laser_labels
[
i
].
num_lidar_points_in_box
)
annotations
=
{}
annotations
=
{}
annotations
[
'name'
]
=
np
.
array
(
obj_name
)
annotations
[
'name'
]
=
np
.
array
(
obj_name
)
...
@@ -46,6 +47,7 @@ def generate_labels(frame):
...
@@ -46,6 +47,7 @@ def generate_labels(frame):
annotations
[
'obj_ids'
]
=
np
.
array
(
obj_ids
)
annotations
[
'obj_ids'
]
=
np
.
array
(
obj_ids
)
annotations
[
'tracking_difficulty'
]
=
np
.
array
(
tracking_difficulty
)
annotations
[
'tracking_difficulty'
]
=
np
.
array
(
tracking_difficulty
)
annotations
[
'num_points_in_gt'
]
=
np
.
array
(
num_points_in_gt
)
annotations
=
common_utils
.
drop_info_with_name
(
annotations
,
name
=
'unknown'
)
annotations
=
common_utils
.
drop_info_with_name
(
annotations
,
name
=
'unknown'
)
if
annotations
[
'name'
].
__len__
()
>
0
:
if
annotations
[
'name'
].
__len__
()
>
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