Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix_create_gt_database #106

Merged
merged 1 commit into from
Sep 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions tools/data_converter/create_gt_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ def create_groundtruth_database(dataset_class_name,
"""
print(f'Create GT Database of {dataset_class_name}')
dataset_cfg = dict(
type=dataset_class_name,
data_root=data_path,
ann_file=info_path,
use_valid_flag=True)
type=dataset_class_name, data_root=data_path, ann_file=info_path)
if dataset_class_name == 'KittiDataset':
file_client_args = dict(backend='disk')
dataset_cfg.update(
Expand All @@ -171,19 +168,21 @@ def create_groundtruth_database(dataset_class_name,
])

elif dataset_class_name == 'NuScenesDataset':
dataset_cfg.update(pipeline=[
dict(type='LoadPointsFromFile', load_dim=5, use_dim=5),
dict(
type='LoadPointsFromMultiSweeps',
sweeps_num=10,
use_dim=[0, 1, 2, 3, 4],
pad_empty_sweeps=True,
remove_close=True),
dict(
type='LoadAnnotations3D',
with_bbox_3d=True,
with_label_3d=True)
])
dataset_cfg.update(
use_valid_flag=True,
pipeline=[
dict(type='LoadPointsFromFile', load_dim=5, use_dim=5),
dict(
type='LoadPointsFromMultiSweeps',
sweeps_num=10,
use_dim=[0, 1, 2, 3, 4],
pad_empty_sweeps=True,
remove_close=True),
dict(
type='LoadAnnotations3D',
with_bbox_3d=True,
with_label_3d=True)
])
dataset = build_dataset(dataset_cfg)

if database_save_path is None:
Expand Down