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
38fdbfd9
Commit
38fdbfd9
authored
Jun 21, 2020
by
liyinhao
Browse files
add nuscene
parent
97f388fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
mmdet3d/datasets/nuscenes_dataset.py
mmdet3d/datasets/nuscenes_dataset.py
+1
-1
tools/data_converter/create_gt_database.py
tools/data_converter/create_gt_database.py
+24
-1
No files found.
mmdet3d/datasets/nuscenes_dataset.py
View file @
38fdbfd9
...
...
@@ -181,7 +181,7 @@ class NuScenesDataset(Custom3DDataset):
anns_results
=
dict
(
gt_bboxes_3d
=
gt_bboxes_3d
,
gt_labels_3d
=
gt_labels_3d
,
)
gt_names_3d
=
gt_names_3d
)
return
anns_results
def
_format_bbox
(
self
,
results
,
jsonfile_prefix
=
None
):
...
...
tools/data_converter/create_gt_database.py
View file @
38fdbfd9
...
...
@@ -147,8 +147,8 @@ def create_groundtruth_database(dataset_class_name,
data_root
=
data_path
,
ann_file
=
info_path
,
)
file_client_args
=
dict
(
backend
=
'disk'
)
if
dataset_class_name
==
'KittiDataset'
:
file_client_args
=
dict
(
backend
=
'disk'
)
dataset_cfg
.
update
(
test_mode
=
False
,
split
=
'training'
,
...
...
@@ -170,6 +170,29 @@ def create_groundtruth_database(dataset_class_name,
with_label_3d
=
True
,
file_client_args
=
file_client_args
)
])
if
dataset_class_name
==
'NuScenesDataset'
:
file_client_args
=
dict
(
backend
=
'petrel'
,
path_mapping
=
dict
({
'./data/nuscenes/'
:
's3://nuscenes/nuscenes/'
,
'data/nuscenes/'
:
's3://nuscenes/nuscenes/'
}))
dataset_cfg
.
update
(
pipeline
=
[
dict
(
type
=
'LoadPointsFromFile'
,
load_dim
=
5
,
use_dim
=
5
,
file_client_args
=
file_client_args
),
dict
(
type
=
'LoadPointsFromMultiSweeps'
,
sweeps_num
=
10
,
file_client_args
=
file_client_args
),
dict
(
type
=
'LoadAnnotations3D'
,
with_bbox_3d
=
True
,
with_label_3d
=
True
)
])
dataset
=
build_dataset
(
dataset_cfg
)
if
database_save_path
is
None
:
...
...
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