Open Rango-T10000 opened 2 hours ago
My solution is modify the code to intercept the array according to the one having shortest length. ` sweep_cams = [] sweep_tss = [] min_length = 189171
for cam_type in camera_names:
dir = os.path.join(data_path, 'sweeps', cam_type)
filenames = os.listdir(dir)
files = [os.path.join(dir, fn) for fn in filenames]
ts = [int(fn.split('__')[-1].split('.')[0]) for fn in filenames]
idx = np.argsort(ts)
# sweep_cams.append(np.array(files)[idx])
# sweep_tss.append(np.array(ts)[idx])
sweep_cams.append(np.array(files)[idx][:min_length])
sweep_tss.append(np.array(ts)[idx][:min_length])
`
After that, you can generate nuscenes_infos_temporal_val_visualize.pkl successfully.
When I try to run projects/mmdet3d_plugin/tools/prepare_video_infos.py to generate: nuscenes_infos_temporal_val_visualize.pkl
I met the problem:
It shows that the element in sweep_cams has different length: