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
9157ee44
Commit
9157ee44
authored
Jul 09, 2020
by
Shaoshuai Shi
Browse files
add config SET_NAN_VELOCITY_TO_ZEROS=True for NuScenes
parent
67b43a3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
pcdet/datasets/nuscenes/nuscenes_dataset.py
pcdet/datasets/nuscenes/nuscenes_dataset.py
+5
-0
tools/cfgs/dataset_configs/nuscenes_dataset.yaml
tools/cfgs/dataset_configs/nuscenes_dataset.yaml
+1
-0
No files found.
pcdet/datasets/nuscenes/nuscenes_dataset.py
View file @
9157ee44
...
...
@@ -132,6 +132,11 @@ class NuScenesDataset(DatasetTemplate):
data_dict
=
self
.
prepare_data
(
data_dict
=
input_dict
)
if
self
.
dataset_cfg
.
get
(
'SET_NAN_VELOCITY_TO_ZEROS'
,
False
):
gt_boxes
=
data_dict
[
'gt_boxes'
]
gt_boxes
[
np
.
isnan
(
gt_boxes
)]
=
0
data_dict
[
'gt_boxes'
]
=
gt_boxes
if
not
self
.
dataset_cfg
.
PRED_VELOCITY
and
'gt_boxes'
in
data_dict
:
data_dict
[
'gt_boxes'
]
=
data_dict
[
'gt_boxes'
][:,
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
-
1
]]
...
...
tools/cfgs/dataset_configs/nuscenes_dataset.yaml
View file @
9157ee44
...
...
@@ -4,6 +4,7 @@ DATA_PATH: '../data/nuscenes'
VERSION
:
'
v1.0-trainval'
MAX_SWEEPS
:
10
PRED_VELOCITY
:
True
SET_NAN_VELOCITY_TO_ZEROS
:
True
FILTER_MIN_POINTS_IN_GT
:
1
DATA_SPLIT
:
{
...
...
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