nutonomy / nuscenes-devkit

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

KeyError: 'is_key_frame' ,can't find the key in record #1061

Closed Liuliuliuyikou closed 6 months ago

Liuliuliuyikou commented 6 months ago

I have been using the nuscenes dataset before and it performed well. However, the following error occurred recently when loading data. line 126, in init version="v1.0-trainval", dataroot=self.dataroot, verbose=False File "/home/ljh/miniconda3/envs/clip_env/lib/python3.7/site-packages/nuscenes/nuscenes.py", line 124, in init self.make_reverse_index(verbose) File "/home/ljh/miniconda3/envs/clip_env/lib/python3.7/site-packages/nuscenes/nuscenes.py", line 186, in make_reverse_index if record['is_key_frame']: KeyError: 'is_key_frame' The only thing I did during this period was to try to load the data and train the model with pytorch_lighting . How can I solve this problem?

whyekit-motional commented 6 months ago

@Liuliuliuyikou without a working code snippet from you (i.e. something a reader can simply copy, paste and run), it is hard to say, but I can suggest a few things to help you:

Liuliuliuyikou commented 6 months ago

Thank you, the problem has been solved