Skip to content

Commit f8413ae

Browse files
authored
[Enhance] Remove useless json file converter (#1971)
1 parent b59d8c0 commit f8413ae

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tools/create_data.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def kitti_data_prep(root_path,
3535
info_train_path = osp.join(out_dir, f'{info_prefix}_infos_train.pkl')
3636
info_val_path = osp.join(out_dir, f'{info_prefix}_infos_val.pkl')
3737
info_trainval_path = osp.join(out_dir, f'{info_prefix}_infos_trainval.pkl')
38-
kitti.export_2d_annotation(root_path, info_train_path)
39-
kitti.export_2d_annotation(root_path, info_val_path)
40-
kitti.export_2d_annotation(root_path, info_trainval_path)
4138
update_pkl_infos('kitti', out_dir=out_dir, pkl_path=info_train_path)
4239
update_pkl_infos('kitti', out_dir=out_dir, pkl_path=info_val_path)
4340
update_pkl_infos('kitti', out_dir=out_dir, pkl_path=info_trainval_path)
@@ -76,17 +73,11 @@ def nuscenes_data_prep(root_path,
7673

7774
if version == 'v1.0-test':
7875
info_test_path = osp.join(out_dir, f'{info_prefix}_infos_test.pkl')
79-
nuscenes_converter.export_2d_annotation(
80-
root_path, info_test_path, version=version)
8176
update_pkl_infos('nuscenes', out_dir=out_dir, pkl_path=info_test_path)
8277
return
8378

8479
info_train_path = osp.join(out_dir, f'{info_prefix}_infos_train.pkl')
8580
info_val_path = osp.join(out_dir, f'{info_prefix}_infos_val.pkl')
86-
nuscenes_converter.export_2d_annotation(
87-
root_path, info_train_path, version=version)
88-
nuscenes_converter.export_2d_annotation(
89-
root_path, info_val_path, version=version)
9081
update_pkl_infos('nuscenes', out_dir=out_dir, pkl_path=info_train_path)
9182
update_pkl_infos('nuscenes', out_dir=out_dir, pkl_path=info_val_path)
9283
create_groundtruth_database(dataset_name, root_path, info_prefix,

0 commit comments

Comments
 (0)