nutonomy / nuscenes-devkit

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

fix loop where ann_count would not count the annotations in the last sample #1015

Open ArkanEmre opened 7 months ago

ArkanEmre commented 7 months ago

This MR fixes the while loop in ann_count. The problem was that if there is only one sample in the scene, the loop condition is never met. Moreover, the loop condition will always be False before the annotations in the last sample of the scene are added to the count.