I use the following code to get a non-keyframe sample
from nuscenes.nuscenes import NuScenes
nusc = NuScenes(version=version, dataroot=root_path, verbose=True)
#get keyframe sample
sample = nusc.sample[0]
cam_token = sample["data"]["CAM_FRONT"]
sd_rec_cam = nusc.get('sample_data', cam_token)
#get non-keyframe sample
cam_token = sd_rec_cam["next"]
sd_rec_cam = nusc.get('sample_data', cam_token)
sample_nonkeyframe = nusc.get("sample", sd_rec_cam["sample_token"])
It seems sample_nonkeyframe contains a data field and an anns field, like the keyframe samples. Does it mean LIDAR and 6-way cameras in non-keyframe data are also associated by the nearest timestamp? Are the annotations created by something like interpolation of keyframe ground truths?
Thanks for your help!
I use the following code to get a non-keyframe sample
It seems
sample_nonkeyframecontains adatafield and anannsfield, like the keyframe samples. Does it mean LIDAR and 6-way cameras in non-keyframe data are also associated by the nearest timestamp? Are the annotations created by something like interpolation of keyframe ground truths?Thanks for your help!