Skip to content

Commit

Permalink
Move use_valid_flag to nus (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
yinchimaoliang authored Sep 16, 2020
1 parent 076b2cb commit 9b09115
Showing 1 changed file with 16 additions and 17 deletions.
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

0 comments on commit 9b09115

Please # to comment.