Skip to content

Association and annotation in non-keyframe samples #1195

@cyh767

Description

@cyh767

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions