nutonomy / nuscenes-devkit

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

nuImages: Unable to render non-keyframe images #559

Closed nobutoba closed 3 years ago

nobutoba commented 3 years ago

There seems to be a small bug in nuimages.py, for which non-keyframe images cannot be rendered:

https://github.com/nutonomy/nuscenes-devkit/blob/5325d1b400950f777cd701bdd5e30a9d57d2eaa8/python-sdk/nuimages/nuimages.py#L642-L643

The condition within the assert statement should be negated as follows:

if not sample_data['is_key_frame']: 
     assert annotation_type == 'none', 'Error: Cannot render annotations for non keyframes!' 

I hope it will be fixed in a future release:+1:

holger-motional commented 3 years ago

Thanks. Problem should be fixed now.