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
c5bc9ac9
Commit
c5bc9ac9
authored
Nov 15, 2022
by
Xiangxu-0103
Committed by
ZwwWayne
Dec 03, 2022
Browse files
[Enhance] Remove useless json file converter (#1971)
parent
0241806b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
tools/create_data.py
tools/create_data.py
+0
-9
No files found.
tools/create_data.py
View file @
c5bc9ac9
...
...
@@ -35,9 +35,6 @@ def kitti_data_prep(root_path,
info_train_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_train.pkl'
)
info_val_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_val.pkl'
)
info_trainval_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_trainval.pkl'
)
kitti
.
export_2d_annotation
(
root_path
,
info_train_path
)
kitti
.
export_2d_annotation
(
root_path
,
info_val_path
)
kitti
.
export_2d_annotation
(
root_path
,
info_trainval_path
)
update_pkl_infos
(
'kitti'
,
out_dir
=
out_dir
,
pkl_path
=
info_train_path
)
update_pkl_infos
(
'kitti'
,
out_dir
=
out_dir
,
pkl_path
=
info_val_path
)
update_pkl_infos
(
'kitti'
,
out_dir
=
out_dir
,
pkl_path
=
info_trainval_path
)
...
...
@@ -76,17 +73,11 @@ def nuscenes_data_prep(root_path,
if
version
==
'v1.0-test'
:
info_test_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_test.pkl'
)
nuscenes_converter
.
export_2d_annotation
(
root_path
,
info_test_path
,
version
=
version
)
update_pkl_infos
(
'nuscenes'
,
out_dir
=
out_dir
,
pkl_path
=
info_test_path
)
return
info_train_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_train.pkl'
)
info_val_path
=
osp
.
join
(
out_dir
,
f
'
{
info_prefix
}
_infos_val.pkl'
)
nuscenes_converter
.
export_2d_annotation
(
root_path
,
info_train_path
,
version
=
version
)
nuscenes_converter
.
export_2d_annotation
(
root_path
,
info_val_path
,
version
=
version
)
update_pkl_infos
(
'nuscenes'
,
out_dir
=
out_dir
,
pkl_path
=
info_train_path
)
update_pkl_infos
(
'nuscenes'
,
out_dir
=
out_dir
,
pkl_path
=
info_val_path
)
create_groundtruth_database
(
dataset_name
,
root_path
,
info_prefix
,
...
...
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