nutonomy / nuscenes-devkit

The devkit of the nuScenes dataset.
https://www.nuScenes.org
Other
2.2k stars 617 forks source link

AttributeError data_split #947

Closed z0v0z closed 1 year ago

z0v0z commented 1 year ago

the error: AttributeError:'nuScenesDataset' object has no attribute 'data_split'. my nuscense-devkit is 1.1.8。

whyekit-motional commented 1 year ago

@z0v0z pls provide a code snippet to reproduce the error

z0v0z commented 1 year ago

@whyekit-motional my code is nusc = NuScenes("v1.0-trainval", "/data/nuScenes") Dataset = nuScenesDataset(nusc, "train", nusc_dataset_kwargs) if Dataset.data_split == "val": and then error.
my nusence_devkit is 1.1.8. i will be appreciated if you can slove my problem. thanks

whyekit-motional commented 1 year ago

Where is nuScenesDataset coming from?

z0v0z commented 1 year ago

@whyekit-motional from data import nuScenesDataset, ONCEDataset, CollateFn

whyekit-motional commented 1 year ago

@z0v0z it seems the package data (where you are importing nuScenesDataset from) does not belong to nuscenes-devkit - you should probably ask the folks who are behind the data package