Drive-MLLM
Drive-MLLM copied to clipboard
Nuscenes Mapping
First: really nice work, thank you for sharing it.
One question: Do you have a mapping of your front cam dataset to nuscenes scenes? we would like to benchmark our methods which leverage pointcloud data and therefor need to know which nuscenes scenes are included in your benchmark to retrieve the respective pointclouds.
Thanks!
Tin
Please refer to the code snippet below to understand the data mapping.
from nuscenes.nuscenes import NuScenes
from nuscenes.utils import splits
nusc = NuScenes(version='v1.0-trainval', dataroot='xxx', verbose=True)
train_val_scenes = splits.train if args.train_val == 'train' else splits.val
train_val_scene_tokens = [scene['token'] for scene in nusc.scene if scene['name'] in train_val_scenes]
train_val_samples = [sample for sample in nusc.sample if sample['scene_token'] in train_val_scene_tokens]