Commit 1c4e1391 authored by Shaoshuai Shi's avatar Shaoshuai Shi
Browse files

bugfixed: use relative path in nuscene infos for sweeps

parent 69326cef
...@@ -299,7 +299,7 @@ def fill_trainval_infos(data_path, nusc, train_scenes, val_scenes, test=False, m ...@@ -299,7 +299,7 @@ def fill_trainval_infos(data_path, nusc, train_scenes, val_scenes, test=False, m
if curr_sd_rec['prev'] == '': if curr_sd_rec['prev'] == '':
if len(sweeps) == 0: if len(sweeps) == 0:
sweep = { sweep = {
'lidar_path': ref_lidar_path, 'lidar_path': Path(ref_lidar_path).relative_to(data_path).__str__(),
'sample_data_token': curr_sd_rec['token'], 'sample_data_token': curr_sd_rec['token'],
'transform_matrix': None, 'transform_matrix': None,
'time_lag': curr_sd_rec['timestamp'] * 0, 'time_lag': curr_sd_rec['timestamp'] * 0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment