We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1455d5 commit 6378d1dCopy full SHA for 6378d1d
second/data/nuscenes_dataset.py
@@ -508,10 +508,7 @@ def _fill_trainval_infos(nusc,
508
break
509
info["sweeps"] = sweeps
510
if not test:
511
- ann_tokens = nusc.field2token('sample_annotation', 'sample_token', sample["token"])
512
- annotations = []
513
- for anno_token in ann_tokens:
514
- annotations.append(nusc.get("sample_annotation", anno_token))
+ annotations = [nusc.get('sample_annotation', token) for token in sample['anns']]
515
locs = np.array([b.center for b in boxes]).reshape(-1, 3)
516
dims = np.array([b.wlh for b in boxes]).reshape(-1, 3)
517
rots = np.array([b.orientation.yaw_pitch_roll[0]
0 commit comments