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
e9149550
Commit
e9149550
authored
Nov 23, 2022
by
Xiangxu-0103
Committed by
ZwwWayne
Dec 03, 2022
Browse files
[Fix] Add num_features in Lyft dataset info file (#1948)
Co-authored-by:
Tai-Wang
<
tab_wang@outlook.com
>
parent
ede10946
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
tools/dataset_converters/lyft_converter.py
tools/dataset_converters/lyft_converter.py
+1
-0
tools/dataset_converters/update_infos_to_v2.py
tools/dataset_converters/update_infos_to_v2.py
+2
-0
No files found.
tools/dataset_converters/lyft_converter.py
View file @
e9149550
...
...
@@ -131,6 +131,7 @@ def _fill_trainval_infos(lyft,
info
=
{
'lidar_path'
:
lidar_path
,
'num_features'
:
5
,
'token'
:
sample
[
'token'
],
'sweeps'
:
[],
'cams'
:
dict
(),
...
...
tools/dataset_converters/update_infos_to_v2.py
View file @
e9149550
...
...
@@ -761,6 +761,8 @@ def update_lyft_infos(pkl_path, out_dir):
temp_data_info
[
'ego2global'
]
=
convert_quaternion_to_matrix
(
ori_info_dict
[
'ego2global_rotation'
],
ori_info_dict
[
'ego2global_translation'
])
temp_data_info
[
'lidar_points'
][
'num_pts_feats'
]
=
ori_info_dict
.
get
(
'num_features'
,
5
)
temp_data_info
[
'lidar_points'
][
'lidar_path'
]
=
Path
(
ori_info_dict
[
'lidar_path'
]).
name
temp_data_info
[
'lidar_points'
][
...
...
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